diff options
author | bomeng <bmeng@us.ibm.com> | 2016-06-12 14:25:48 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-06-12 14:25:48 +0100 |
commit | 50248dcfff3ba79b73323f3a804c1e19a8be6097 (patch) | |
tree | b1ad5729b2fe3cefb3142b17f2fff312d7e7a836 /sbin/start-master.sh | |
parent | 3fd3ee038b89821f51f30a4ecd4452b5b3bc6568 (diff) | |
download | spark-50248dcfff3ba79b73323f3a804c1e19a8be6097.tar.gz spark-50248dcfff3ba79b73323f3a804c1e19a8be6097.tar.bz2 spark-50248dcfff3ba79b73323f3a804c1e19a8be6097.zip |
[SPARK-15806][DOCUMENTATION] update doc for SPARK_MASTER_IP
## What changes were proposed in this pull request?
SPARK_MASTER_IP is a deprecated environment variable. It is replaced by SPARK_MASTER_HOST according to MasterArguments.scala.
## How was this patch tested?
Manually verified.
Author: bomeng <bmeng@us.ibm.com>
Closes #13543 from bomeng/SPARK-15806.
Diffstat (limited to 'sbin/start-master.sh')
-rwxr-xr-x | sbin/start-master.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/start-master.sh b/sbin/start-master.sh index ce7f177959..981cb15bc0 100755 --- a/sbin/start-master.sh +++ b/sbin/start-master.sh @@ -47,8 +47,8 @@ if [ "$SPARK_MASTER_PORT" = "" ]; then SPARK_MASTER_PORT=7077 fi -if [ "$SPARK_MASTER_IP" = "" ]; then - SPARK_MASTER_IP=`hostname` +if [ "$SPARK_MASTER_HOST" = "" ]; then + SPARK_MASTER_HOST=`hostname` fi if [ "$SPARK_MASTER_WEBUI_PORT" = "" ]; then @@ -56,5 +56,5 @@ if [ "$SPARK_MASTER_WEBUI_PORT" = "" ]; then fi "${SPARK_HOME}/sbin"/spark-daemon.sh start $CLASS 1 \ - --ip $SPARK_MASTER_IP --port $SPARK_MASTER_PORT --webui-port $SPARK_MASTER_WEBUI_PORT \ + --host $SPARK_MASTER_HOST --port $SPARK_MASTER_PORT --webui-port $SPARK_MASTER_WEBUI_PORT \ $ORIGINAL_ARGS |