Skip to content
Snippets Groups Projects
Commit 022a8f6a authored by ph's avatar ph Committed by Josh Rosen
Browse files

[SPARK-11129] [MESOS] Link Spark WebUI from Mesos WebUI

Mesos has a feature for linking to frameworks running on top of Mesos
from the Mesos WebUI. This commit enables Spark to make use of this
feature so one can directly visit the running Spark WebUIs from the
Mesos WebUI.

Author: ph <ph@plista.com>

Closes #9135 from philipphoffmann/SPARK-11129.
parent 57f83e36
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,12 @@ private[spark] class CoarseMesosSchedulerBackend(
override def start() {
super.start()
val driver = createSchedulerDriver(
master, CoarseMesosSchedulerBackend.this, sc.sparkUser, sc.appName, sc.conf)
master,
CoarseMesosSchedulerBackend.this,
sc.sparkUser,
sc.appName,
sc.conf,
sc.ui.map(_.appUIAddress))
startScheduler(driver)
}
......
......@@ -68,7 +68,12 @@ private[spark] class MesosSchedulerBackend(
override def start() {
classLoader = Thread.currentThread.getContextClassLoader
val driver = createSchedulerDriver(
master, MesosSchedulerBackend.this, sc.sparkUser, sc.appName, sc.conf)
master,
MesosSchedulerBackend.this,
sc.sparkUser,
sc.appName,
sc.conf,
sc.ui.map(_.appUIAddress))
startScheduler(driver)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment