-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-blacklist.sh
executable file
·31 lines (25 loc) · 1.13 KB
/
test-blacklist.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
#!/bin/bash
export SPARK_PREPEND_CLASSES=true
# Recall: local-cluster [nodes, cores, memory]
# Recall that the unit for spark.blacklist.timeout is milliseconds.
./bin/spark-shell \
--master local-cluster[4,4,1024] \
--conf spark.blacklist.enabled=TRUE \
--conf spark.blacklist.timeout=1000000 \
--conf spark.blacklist.application.maxFailedTasksPerExecutor=1 \
--conf spark.blacklist.application.maxFailedExecutorsPerNode=3 \
--conf spark.blacklist.stage.maxFailedTasksPerExecutor=3 \
--conf spark.blacklist.stage.maxFailedExecutorsPerNode=3 \
--conf spark.blacklist.task.maxTaskAttemptsPerExecutor=3 \
--conf spark.blacklist.task.maxTaskAttemptsPerNode=3 \
--conf spark.task.maxFailures=4 \
--conf spark.eventLog.enabled=TRUE \
--conf spark.eventLog.compress=FALSE \
--conf spark.eventLog.overwrite=TRUE \
--conf spark.eventLog.dir=/Users/jose/logs \
-i ~/dev/jose-utils/blacklist/test-blacklist.scala
# Options.
# Test executor and not node blacklisting.
# --conf spark.blacklist.application.maxFailedExecutorsPerNode=3 \
# Test node blacklisting.
# --conf spark.blacklist.application.maxFailedExecutorsPerNode=2 \