aboutsummaryrefslogtreecommitdiff
path: root/sbin/stop-slaves.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/stop-slaves.sh')
-rwxr-xr-xsbin/stop-slaves.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/stop-slaves.sh b/sbin/stop-slaves.sh
index eb803b4900..6bf393ccd4 100755
--- a/sbin/stop-slaves.sh
+++ b/sbin/stop-slaves.sh
@@ -26,6 +26,11 @@ if [ -f "${SPARK_CONF_DIR}/spark-env.sh" ]; then
. "${SPARK_CONF_DIR}/spark-env.sh"
fi
+# do before the below calls as they exec
+if [ -e "$sbin"/../tachyon/bin/tachyon ]; then
+ "$sbin/slaves.sh" cd "$SPARK_HOME" \; "$sbin"/../tachyon/bin/tachyon killAll tachyon.worker.Worker
+fi
+
if [ "$SPARK_WORKER_INSTANCES" = "" ]; then
"$sbin"/spark-daemons.sh stop org.apache.spark.deploy.worker.Worker 1
else