Cluster mode
Spark on Mesos also supports cluster mode. If the driver is already launched Spark job (on a cluster) and the computation is also finished, client can access the result (of driver) from the Mesos Web UI. If you have started MesosClusterDispatcher in your cluster through the SPARK_HOME/sbin/start-mesos-dispatcher.sh script, you can use the cluster mode.
Again, the condition is that you have to pass the Mesos master URL (for example, mesos://host:5050) while creating the SparkContext in your Spark application. Starting the Mesos in the cluster mode also starts the MesosClusterDispatcher as a daemon running on your host machine.
To gain a more flexible and advanced execution of your Spark jobs, you can also use the Marathon. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access