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/start-slaves.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/start-slaves.sh (limited to 'bin/start-slaves.sh') diff --git a/bin/start-slaves.sh b/bin/start-slaves.sh new file mode 100755 index 0000000000..eb7663101b --- /dev/null +++ b/bin/start-slaves.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +bin=`dirname "$0"` +bin=`cd "$bin"; pwd` + +. "$bin/spark-config.sh" + +# Find the port number for the master +if [ "$SPARK_MASTER_PORT" = "" ]; then + SPARK_MASTER_PORT=7077 +fi + +hostname=`hostname` +ip=`host "$hostname" | cut -d " " -f 4` + +"$bin"/spark-daemons.sh start spark.deploy.worker.Worker spark://$ip:$SPARK_MASTER_PORT \ No newline at end of file -- cgit v1.2.3