Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/10086#discussion_r46946121 --- Diff: docs/running-on-mesos.md --- @@ -151,13 +151,27 @@ Spark on Mesos also supports cluster mode, where the driver is launched in the c can find the results of the driver from the Mesos Web UI. To use cluster mode, you must start the MesosClusterDispatcher in your cluster via the `sbin/start-mesos-dispatcher.sh` script, -passing in the Mesos master url (e.g: mesos://host:5050). +passing in the Mesos master url (e.g: mesos://host:5050). This starts the MesosClusterDispatcher as an daemon running on the host. + +If you like to run the MesosClusterDispatcher with Marathon, you need to run the MesosClusterDispatcher in the foreground (i.e: `bin/spark-class org.apache.spark.deploy.mesos.MesosClusterDispatcher`). From the client, you can submit a job to Mesos cluster by running `spark-submit` and specifying the master url to the url of the MesosClusterDispatcher (e.g: mesos://dispatcher:7077). You can view driver statuses on the Spark cluster Web UI. -Note that jars or python files that are passed to spark-submit should be URIs reachable by Mesos slaves. +For example: +./bin/spark-submit \ + --class org.apache.spark.examples.SparkPi \ + --master mesos://207.184.161.138:7077 \ + --deploy-mode cluster + --supervise + --executor-memory 20G \ + --total-executor-cores 100 \ + http://path/to/examples.jar \ + 1000 + + +Note that jars or python files that are passed to spark-submit should be URIs reachable by Mesos slaves, as Spark driver doesn't automatically upload local jars. --- End diff -- Does the code block need to be in `{% highlight bash %}`? also "as Spark driver" -> "as the Spark driver"
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org