diff options
author | Denny <dennybritz@gmail.com> | 2012-08-02 16:12:40 -0700 |
---|---|---|
committer | Denny <dennybritz@gmail.com> | 2012-08-02 16:12:40 -0700 |
commit | c90c9ec20801804e8d9ca6fe6770862077f1211f (patch) | |
tree | ed22511ed9483e6ad031242ddbc3910924fdfb23 /bin | |
parent | 0008994044ca0d40facc489cbcd0371a66e7630f (diff) | |
download | spark-c90c9ec20801804e8d9ca6fe6770862077f1211f.tar.gz spark-c90c9ec20801804e8d9ca6fe6770862077f1211f.tar.bz2 spark-c90c9ec20801804e8d9ca6fe6770862077f1211f.zip |
Read config variables before to get the master port
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/start-slaves.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |