[SPARK-16809] enable history server links in dispatcher UI#14414
[SPARK-16809] enable history server links in dispatcher UI#14414mgummelt wants to merge 3 commits intoapache:masterfrom
Conversation
|
cc @skonto. This somewhat relates to your work on https://issues.apache.org/jira/browse/SPARK-13401, but it seems to be disjoint. |
|
Test build #63027 has finished for PR 14414 at commit
|
| import org.apache.spark.ui.{UIUtils, WebUIPage} | ||
|
|
||
| private[mesos] class MesosClusterPage(parent: MesosClusterUI) extends WebUIPage("") { | ||
| private val historyServerURL = parent.conf.getOption("spark.mesos.dispatcher.historyServer.url") |
There was a problem hiding this comment.
Would it be possible to define a constant for "spark.mesos.dispatcher.historyServer.url" (as is in SQL and YARN modules)? See https://github.com/apache/spark/blob/master/yarn/src/main/scala/org/apache/spark/deploy/yarn/config.scala.
There was a problem hiding this comment.
Ah, I wasn't aware of that class. We should definitely use it, but I'd like to make that change consistently. I made a JIRA for the migration: https://issues.apache.org/jira/browse/SPARK-16881
|
@jaceklaskowski PTAL |
|
Test build #63180 has finished for PR 14414 at commit
|
|
You need to add UI screenshots for the changes at the description. |
The link is not correct i guess you meant https://issues.apache.org/jira/browse/SPARK-13041 ;) |
| * @param taskId Mesos TaskID generated for the task | ||
| * @param slaveId Slave ID that the task is assigned to | ||
| * @param mesosTaskStatus The last known task status update. | ||
| * @param startDate The date the task was launched |
|
I will add more comment im trying to test it. |
I agree, and we should change this at some point, but that's not the goal of this PR.
Yea, it's a limitation. The dispatcher knows about drivers, but the history server knows about apps (i.e. contexts), and this relationship is one to many. This is a simple way to connect the two in the common case of 1 driver having 1 context. To solve the 1-to-many case, we'd need some way of the driver communicating back to the dispatcher for every context that it creates. That's a more difficult problem, and I don't think it's worth solving right now. |
|
Test build #63382 has finished for PR 14414 at commit
|
|
I agree just to have a reminder for what we can achieve. LGTM other than that. |
|
@srowen Can you merge? |
|
Merged to master |



What changes were proposed in this pull request?
Links the Spark Mesos Dispatcher UI to the history server UI
How was this patch tested?
manual testing