diff options
Diffstat (limited to 'bin/start-all.sh')
-rwxr-xr-x | bin/start-all.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/start-all.sh b/bin/start-all.sh new file mode 100755 index 0000000000..9bd6c50654 --- /dev/null +++ b/bin/start-all.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# Start all spark daemons. +# Starts the master on this node. +# Starts a worker on each node specified in conf/slaves + +bin=`dirname "$0"` +bin=`cd "$bin"; pwd` + +# Load the Spark configuration +. "$bin/spark-config.sh" + +# Start Master +"$bin"/start-master.sh --config $SPARK_CONF_DIR + +# Start Workers +"$bin"/start-slaves.sh --config $SPARK_CONF_DIR
\ No newline at end of file |