aboutsummaryrefslogtreecommitdiff
path: root/sbin/stop-mesos-dispatcher.sh
diff options
context:
space:
mode:
authorTimothy Chen <tnachen@gmail.com>2016-02-20 12:58:47 -0800
committerReynold Xin <rxin@databricks.com>2016-02-20 12:58:47 -0800
commita4a081d1df043cce6db0284ef552e5174ebb0d02 (patch)
treede6fc960f8972e78bebbc6af8f1ddb9e10ecb5b3 /sbin/stop-mesos-dispatcher.sh
parent6ce7c481dc3a94af503d0f3f86e2be7ba82b3bbc (diff)
downloadspark-a4a081d1df043cce6db0284ef552e5174ebb0d02.tar.gz
spark-a4a081d1df043cce6db0284ef552e5174ebb0d02.tar.bz2
spark-a4a081d1df043cce6db0284ef552e5174ebb0d02.zip
[SPARK-13414][MESOS] Allow multiple dispatchers to be launched.
## What changes were proposed in this pull request? Users might want to start multiple mesos dispatchers, as each dispatcher can potentially be part of different roles and used for multi-tenancy. To allow multiple Mesos dispatchers to be launched, we need to be able to specify a instance number when starting the dispatcher daemon. ## How was the this patch tested? Manual testing Author: Timothy Chen <tnachen@gmail.com> Closes #11281 from tnachen/multiple_cluster_dispatchers.
Diffstat (limited to 'sbin/stop-mesos-dispatcher.sh')
-rwxr-xr-xsbin/stop-mesos-dispatcher.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/stop-mesos-dispatcher.sh b/sbin/stop-mesos-dispatcher.sh
index 5c0b4e051d..b13e018c7d 100755
--- a/sbin/stop-mesos-dispatcher.sh
+++ b/sbin/stop-mesos-dispatcher.sh
@@ -24,5 +24,10 @@ fi
. "${SPARK_HOME}/sbin/spark-config.sh"
-"${SPARK_HOME}/sbin"/spark-daemon.sh stop org.apache.spark.deploy.mesos.MesosClusterDispatcher 1
+if [ "$SPARK_MESOS_DISPATCHER_NUM" = "" ]; then
+ SPARK_MESOS_DISPATCHER_NUM=1
+fi
+
+"${SPARK_HOME}/sbin"/spark-daemon.sh stop org.apache.spark.deploy.mesos.MesosClusterDispatcher \
+ $SPARK_MESOS_DISPATCHER_NUM