-
Notifications
You must be signed in to change notification settings - Fork 68
/
profile.sh
executable file
·43 lines (36 loc) · 1.38 KB
/
profile.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
36
37
38
39
40
41
42
#!/usr/bin/env bash
# Copy project to worker nodes
./spark-ec2/copy-dir /home/ec2-user/
export JAVA_HOME="/usr/lib/jvm/java-1.8.0"
for TOTAL_CORES in 8; do
for SIZE in `seq 15 25`; do
export APP=dizk-large
export MEMORY=16G
export MULTIPLIER=2
export CORES=1
export NUM_EXECUTORS=$((TOTAL_CORES / CORES))
export NUM_PARTITIONS=$((TOTAL_CORES * MULTIPLIER))
/root/spark/bin/spark-submit \
--conf spark.driver.memory=$MEMORY \
--conf spark.driver.maxResultSize=$MEMORY \
--conf spark.executor.cores=$CORES \
--total-executor-cores $TOTAL_CORES \
--conf spark.executor.memory=$MEMORY \
--conf spark.memory.fraction=0.95 \
--conf spark.memory.storageFraction=0.3 \
--conf spark.kryoserializer.buffer.max=1g \
--conf spark.rdd.compress=true \
--conf spark.rpc.message.maxSize=1024 \
--conf spark.executor.heartbeatInterval=30s \
--conf spark.network.timeout=300s\
--conf spark.speculation=true \
--conf spark.speculation.interval=5000ms \
--conf spark.speculation.multiplier=2 \
--conf spark.local.dir=/mnt/spark \
--conf spark.logConf=true \
--conf spark.eventLog.dir=/tmp/spark-events \
--conf spark.eventLog.enabled=false \
--class "profiler.Profiler" \
/home/ec2-user/dizk-1.0.jar $NUM_EXECUTORS $CORES $MEMORY $APP $SIZE $NUM_PARTITIONS
done
done