From 0ee44c225e38abbf3382be6e9555ab9a35424a54 Mon Sep 17 00:00:00 2001 From: Denny Date: Wed, 1 Aug 2012 13:17:31 -0700 Subject: Spark standalone mode cluster scripts. Heavily inspired by Hadoop cluster scripts ;-) --- bin/spark-daemons.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 bin/spark-daemons.sh (limited to 'bin/spark-daemons.sh') diff --git a/bin/spark-daemons.sh b/bin/spark-daemons.sh new file mode 100755 index 0000000000..4f9719ee80 --- /dev/null +++ b/bin/spark-daemons.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Run a Spark command on all slave hosts. + +usage="Usage: spark-daemons.sh [--config confdir] [--hosts hostlistfile] [start|stop] command args..." + +# if no args specified, show usage +if [ $# -le 1 ]; then + echo $usage + exit 1 +fi + +bin=`dirname "$0"` +bin=`cd "$bin"; pwd` + +. "$bin/spark-config.sh" + +exec "$bin/slaves.sh" cd "$SPARK_HOME" \; "$bin/spark-daemon.sh" "$@" -- cgit v1.2.3