-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-21250][WEB-UI]Add a url in the table of 'Running Executors' in worker page to visit job page. #18464
[SPARK-21250][WEB-UI]Add a url in the table of 'Running Executors' in worker page to visit job page. #18464
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ import scala.xml.Node | |
import org.json4s.JValue | ||
|
||
import org.apache.spark.deploy.DeployMessages.{RequestWorkerState, WorkerStateResponse} | ||
import org.apache.spark.deploy.JsonProtocol | ||
import org.apache.spark.deploy.{ExecutorState, JsonProtocol} | ||
import org.apache.spark.deploy.master.DriverState | ||
import org.apache.spark.deploy.worker.{DriverRunner, ExecutorRunner} | ||
import org.apache.spark.ui.{UIUtils, WebUIPage} | ||
|
@@ -112,7 +112,15 @@ private[ui] class WorkerPage(parent: WorkerWebUI) extends WebUIPage("") { | |
<td> | ||
<ul class="unstyled"> | ||
<li><strong>ID:</strong> {executor.appId}</li> | ||
<li><strong>Name:</strong> {executor.appDesc.name}</li> | ||
<li><strong>Name:</strong> | ||
{ | ||
if ({executor.state == ExecutorState.RUNNING}) { | ||
<a href={executor.appDesc.appUiUrl}> {executor.appDesc.name}</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens if
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if exeutor.appDesc.appUIUrl is empty, click the URL, the jump page is the current page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When will There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was originally set by:
The webUrl is only valid after bind(). But I think normally this should not be empty. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I also think so. @dongjoon-hyun Is it necessary to make a non - empty judgment?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, @cloud-fan , @jiangxb1987 , @guoxiaolongzte . bin/spark-shell --conf spark.ui.enabled=false There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @dongjoon-hyun I missed that in my review, we definitely need that non-empty check |
||
} else { | ||
{executor.appDesc.name} | ||
} | ||
} | ||
</li> | ||
<li><strong>User:</strong> {executor.appDesc.user}</li> | ||
</ul> | ||
</td> | ||
|
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.
Hi, @guoxiaolongzte .
This is a scalastyle violation.
Could you do
dev/scalastyle
?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.
I have fixed it, thanks.