From c90c9ec20801804e8d9ca6fe6770862077f1211f Mon Sep 17 00:00:00 2001 From: Denny Date: Thu, 2 Aug 2012 16:12:40 -0700 Subject: Read config variables before to get the master port --- bin/start-slaves.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/start-slaves.sh b/bin/start-slaves.sh index eb7663101b..f348ea063f 100755 --- a/bin/start-slaves.sh +++ b/bin/start-slaves.sh @@ -5,6 +5,10 @@ bin=`cd "$bin"; pwd` . "$bin/spark-config.sh" +if [ -f "${SPARK_CONF_DIR}/spark-env.sh" ]; then + . "${SPARK_CONF_DIR}/spark-env.sh" +fi + # Find the port number for the master if [ "$SPARK_MASTER_PORT" = "" ]; then SPARK_MASTER_PORT=7077 -- cgit v1.2.3