-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest.sh
executable file
·35 lines (32 loc) · 1.51 KB
/
rest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
echo "Switching to AB experiments...";
for hop in 1 2; do
for dataset in "USAir" "yeast" "PB" "facebook" "arxiv"; do
$SPARK_HOME/load_db.sh $dataset;
for executors in 4 8 12; do
for links in 10 100 500 1000; do
echo "|EXPERIMENT SETUP| " "hop: " $hop "|dataset: " $dataset "|# links: " $links "|Batch in prior? " $batch_inprior "|# of execs: " $executors " |";
$SPARK_HOME/exeDB.sh --number_of_executors $executors --hop $hop --links $links --db_extraction "True" --dataset $dataset;
# clean up
kubectl get pods --field-selector 'status.phase=Succeeded' -o name | xargs kubectl delete;
# save existing results
python /home/konstantin.igin/bachelor/utils/save_from_hdfs.py /home/konstantin.igin/results;
done
done
done
done
echo "Switching to B experiments..."
for hop in 1 2; do
for dataset in "USAir" "yeast" "PB" "facebook" "arxiv"; do
$SPARK_HOME/load_db.sh $dataset;
for executors in 4 8 12; do
for links in 10 100 500 1000; do
echo "|EXPERIMENT SETUP| " "hop: " $hop "|dataset: " $dataset "|# links: " $links "|Batch in prior? " $batch_inprior "|# of execs: " $executors " |";
$SPARK_HOME/exeFrames.sh --number_of_executors $executors --number_of_db_cores 99 --hop $hop --links $links --db_extraction "True" --dataset $dataset;
# clean up
kubectl get pods --field-selector 'status.phase=Succeeded' -o name | xargs kubectl delete;
# save existing results
python /home/konstantin.igin/bachelor/utils/save_from_hdfs.py /home/konstantin.igin/results;
done
done
done
done