-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-12673][UI] Add missing uri prepending for job description #10618
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
Test build #48849 has finished for PR 10618 at commit
|
Jenkins, retest this please. |
Test build #48858 has finished for PR 10618 at commit
|
LGTM. |
@@ -224,7 +224,8 @@ private[ui] class AllJobsPage(parent: JobsTab) extends WebUIPage("") { | |||
} | |||
val formattedDuration = duration.map(d => UIUtils.formatDuration(d)).getOrElse("Unknown") | |||
val formattedSubmissionTime = job.submissionTime.map(UIUtils.formatDate).getOrElse("Unknown") | |||
val jobDescription = UIUtils.makeDescription(lastStageDescription, parent.basePath) | |||
val basePathUri = UIUtils.prependBaseUri(parent.basePath) | |||
val jobDescription = UIUtils.makeDescription(lastStageDescription, basePathUri) | |||
|
|||
val detailUrl = | |||
"%s/jobs/job?id=%s".format(UIUtils.prependBaseUri(parent.basePath), job.jobId) |
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.
If you wanted to clean up the code slightly, you could change this to use basePathUri
defined above, then wrap it back to a single line.
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.
+1
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 see, I will change it.
Ahh, looks like #10617 happens to fix the same issue as this PR, I haven't noticed that one... |
Test build #48886 has finished for PR 10618 at commit
|
LGTM. Merging to master, 1.6 and 1.5 |
Otherwise the url will be failed to proxy to the right one if in YARN mode. Here is the screenshot:  Author: jerryshao <sshao@hortonworks.com> Closes #10618 from jerryshao/SPARK-12673. (cherry picked from commit 174e72c) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
Otherwise the url will be failed to proxy to the right one if in YARN mode. Here is the screenshot:  Author: jerryshao <sshao@hortonworks.com> Closes #10618 from jerryshao/SPARK-12673. (cherry picked from commit 174e72c) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
Otherwise the url will be failed to proxy to the right one if in YARN mode. Here is the screenshot: