-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-16809] enable history server links in dispatcher UI #14414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FinishDate is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
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