-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsparkBenchmark.py
More file actions
35 lines (30 loc) · 1.72 KB
/
sparkBenchmark.py
File metadata and controls
35 lines (30 loc) · 1.72 KB
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
import os
workers=['15', '12', '9', '6', '3']
for w in workers:
os.system("/root/spark-2.3.0-bin-hadoop2.7/bin/spark-submit --jars /root/implementation/HiveTrajSPARQL/target/HiveTrajSPARQL-jar-with-dependencies.jar \
--conf spark.executor.memory=6g \
--conf spark.executor.cores=1 \
--conf spark.eventLog.enabled=true \
--conf spark.eventLog.dir=hdfs:///user/root/spark_eventLog \
--conf spark.executor.instances="+w+"\
--conf spark.driver.memory=6g \
--conf spark.driver.cores=6 \
--conf spark.executor.memoryOverhead=1g \
--conf spark.master=yarn \
--conf spark.submit.deployMode=client \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.yarn.archive=hdfs:///user/root/spark230_jars/spark230.tar.gz --class benchmark.rangeEvaluation target/TrajSPARQL-jar-with-dependencies.jar > spark_rangeEvaluation_"+w)
for w in workers:
os.system("/root/spark-2.3.0-bin-hadoop2.7/bin/spark-submit --jars /root/implementation/HiveTrajSPARQL/target/HiveTrajSPARQL-jar-with-dependencies.jar \
--conf spark.executor.memory=6g \
--conf spark.executor.cores=1 \
--conf spark.eventLog.enabled=true \
--conf spark.eventLog.dir=hdfs:///user/root/spark_eventLog \
--conf spark.executor.instances="+w+"\
--conf spark.driver.memory=6g \
--conf spark.driver.cores=6 \
--conf spark.executor.memoryOverhead=1g \
--conf spark.master=yarn \
--conf spark.submit.deployMode=client \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.yarn.archive=hdfs:///user/root/spark230_jars/spark230.tar.gz --class benchmark.knnEvaluation target/TrajSPARQL-jar-with-dependencies.jar 40000.1 604800 > spark_knnEvaluation_"+w)