File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,16 @@ if [ "$SPARK_MASTER_IP" = "" ]; then
5151 SPARK_MASTER_IP=` hostname`
5252fi
5353
54+ if [ " $START_TACHYON " == " true" ]; then
55+ " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin " /../tachyon/bin/tachyon bootstrap-conf $SPARK_MASTER_IP
56+
57+ # set -t so we can call sudo
58+ SPARK_SSH_OPTS=" -o StrictHostKeyChecking=no -t" " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin /../tachyon/bin/tachyon-start.sh" worker SudoMount \; sleep 1
59+ fi
60+
5461# Launch the slaves
5562if [ " $SPARK_WORKER_INSTANCES " = " " ]; then
56- " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin /start-slave.sh" 1 spark://$SPARK_MASTER_IP :$SPARK_MASTER_PORT
63+ exec " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin /start-slave.sh" 1 spark://$SPARK_MASTER_IP :$SPARK_MASTER_PORT
5764else
5865 if [ " $SPARK_WORKER_WEBUI_PORT " = " " ]; then
5966 SPARK_WORKER_WEBUI_PORT=8081
6269 " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin /start-slave.sh" $(( $i + 1 )) spark://$SPARK_MASTER_IP :$SPARK_MASTER_PORT --webui-port $(( $SPARK_WORKER_WEBUI_PORT + $i ))
6370 done
6471fi
65-
66- if [ " $START_TACHYON " == " true" ]; then
67- " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin " /../tachyon/bin/tachyon bootstrap-conf $SPARK_MASTER_IP
68-
69- # set -t so we can call sudo
70- SPARK_SSH_OPTS=" -o StrictHostKeyChecking=no -t" " $sbin /slaves.sh" cd " $SPARK_HOME " \; " $sbin /../tachyon/bin/tachyon-start.sh" worker SudoMount \; sleep 1
71- fi
You can’t perform that action at this time.
0 commit comments