File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ START_TACHYON=false
2727while (( "$# " )) ; do
2828case $1 in
2929 --with-tachyon)
30+ if [ ! -e " $sbin " /tachyon/bin/tachyon ]; then
31+ echo " Error: --with-tachyon specified, but tachyon not found."
32+ exit -1
33+ fi
3034 START_TACHYON=true
3135 ;;
3236 esac
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ if [ -f "${SPARK_CONF_DIR}/spark-env.sh" ]; then
2727fi
2828
2929# do before the below calls as they exec
30- " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin " /tachyon/bin/tachyon killAll tachyon.worker.Worker
30+ if [ -e " $sbin " /tachyon/bin/tachyon ]; then
31+ " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin " /tachyon/bin/tachyon killAll tachyon.worker.Worker
32+ fi
3133
3234if [ " $SPARK_WORKER_INSTANCES " = " " ]; then
3335 " $sbin " /spark-daemons.sh stop org.apache.spark.deploy.worker.Worker 1
You can’t perform that action at this time.
0 commit comments