Skip to content

Commit c5cfef8

Browse files
Maybe make HeavyAI working
1 parent cc15505 commit c5cfef8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

heavyai/benchmark.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export HEAVYAI_STORAGE=/var/lib/heavyai
1717
export HEAVYAI_PATH=/opt/heavyai
1818
export HEAVYAI_LOG=/var/lib/heavyai/data/mapd_log
1919

20-
cd $HEAVYAI_PATH/systemd
20+
pushd $HEAVYAI_PATH/systemd
2121
./install_heavy_systemd.sh
2222

2323
# Press Enter multiple times.
@@ -32,7 +32,7 @@ wget --continue --progress=dot:giga 'https://datasets.clickhouse.com/hits_compat
3232
pigz -d -f hits.csv.gz
3333
chmod 777 ~ hits.csv
3434

35-
sudo bash -c "echo 'allowed-import-paths = [\"/home/ubuntu/\"]' > /var/lib/heavyai/heavy.conf_"
35+
sudo bash -c "echo 'allowed-import-paths = [\"$(echo ~)\"]' > /var/lib/heavyai/heavy.conf_"
3636
sudo bash -c "cat /var/lib/heavyai/heavy.conf >> /var/lib/heavyai/heavy.conf_"
3737
sudo bash -c "mv /var/lib/heavyai/heavy.conf_ /var/lib/heavyai/heavy.conf && chown heavyai /var/lib/heavyai/heavy.conf"
3838
sudo systemctl restart heavydb
@@ -43,6 +43,7 @@ command time -f '%e' /opt/heavyai/bin/heavysql -t -p HyperInteractive <<< "COPY
4343

4444
# Loaded: 99997497 recs, Rejected: 0 recs in 572.633000 secs
4545

46+
popd
4647
./run.sh 2>&1 | tee log.txt
4748

4849
echo -n "Data size: "

0 commit comments

Comments
 (0)