aboutsummaryrefslogtreecommitdiff
path: root/sbin/stop-slaves.sh
diff options
context:
space:
mode:
authorNick Lanham <nick@afternight.org>2014-03-18 22:04:57 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-03-18 22:04:57 -0700
commita18ea00f3af0fa4c6b2c59933e22b6c9f0f636c8 (patch)
treebe8b2783a2a93724bcbbdcf115cbd8f628292ef9 /sbin/stop-slaves.sh
parentcc2655a237442a71c75d4fade99767df7648e55f (diff)
downloadspark-a18ea00f3af0fa4c6b2c59933e22b6c9f0f636c8.tar.gz
spark-a18ea00f3af0fa4c6b2c59933e22b6c9f0f636c8.tar.bz2
spark-a18ea00f3af0fa4c6b2c59933e22b6c9f0f636c8.zip
Bundle tachyon: SPARK-1269
This should all work as expected with the current version of the tachyon tarball (0.4.1) Author: Nick Lanham <nick@afternight.org> Closes #137 from nicklan/bundle-tachyon and squashes the following commits: 2eee15b [Nick Lanham] Put back in exec, start tachyon first 738ba23 [Nick Lanham] Move tachyon out of sbin f2f9bc6 [Nick Lanham] More checks for tachyon script 111e8e1 [Nick Lanham] Only try tachyon operations if tachyon script exists 0561574 [Nick Lanham] Copy over web resources so web interface can run 4dc9809 [Nick Lanham] Update to tachyon 0.4.1 0a1a20c [Nick Lanham] Add scripts using tachyon tarball
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