Skip to content

Commit b3ce9da

Browse files
committed
Pass args to start-master.sh through to start-daemon.sh, as other scripts do, so that things like --host have effect on start-master.sh as per docs
1 parent c64ff80 commit b3ce9da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sbin/start-master.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
sbin="`dirname "$0"`"
2323
sbin="`cd "$sbin"; pwd`"
2424

25+
ORIGINAL_ARGS="$@"
26+
2527
START_TACHYON=false
2628

2729
while (( "$#" )); do
@@ -53,7 +55,9 @@ if [ "$SPARK_MASTER_WEBUI_PORT" = "" ]; then
5355
SPARK_MASTER_WEBUI_PORT=8080
5456
fi
5557

56-
"$sbin"/spark-daemon.sh start org.apache.spark.deploy.master.Master 1 --ip $SPARK_MASTER_IP --port $SPARK_MASTER_PORT --webui-port $SPARK_MASTER_WEBUI_PORT
58+
"$sbin"/spark-daemon.sh start org.apache.spark.deploy.master.Master 1 \
59+
--ip $SPARK_MASTER_IP --port $SPARK_MASTER_PORT --webui-port $SPARK_MASTER_WEBUI_PORT \
60+
$ORIGINAL_ARGS
5761

5862
if [ "$START_TACHYON" == "true" ]; then
5963
"$sbin"/../tachyon/bin/tachyon bootstrap-conf $SPARK_MASTER_IP

0 commit comments

Comments
 (0)