Skip to content

Commit 174e72c

Browse files
jerryshaozsxwing
authored andcommitted
[SPARK-12673][UI] Add missing uri prepending for job description
Otherwise the url will be failed to proxy to the right one if in YARN mode. Here is the screenshot: ![screen shot 2016-01-06 at 5 28 26 pm](https://cloud.githubusercontent.com/assets/850797/12139632/bbe78ecc-b49c-11e5-8932-94e8b3622a09.png) Author: jerryshao <sshao@hortonworks.com> Closes #10618 from jerryshao/SPARK-12673.
1 parent 8e19c76 commit 174e72c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ private[ui] class AllJobsPage(parent: JobsTab) extends WebUIPage("") {
224224
}
225225
val formattedDuration = duration.map(d => UIUtils.formatDuration(d)).getOrElse("Unknown")
226226
val formattedSubmissionTime = job.submissionTime.map(UIUtils.formatDate).getOrElse("Unknown")
227-
val jobDescription = UIUtils.makeDescription(lastStageDescription, parent.basePath)
227+
val basePathUri = UIUtils.prependBaseUri(parent.basePath)
228+
val jobDescription = UIUtils.makeDescription(lastStageDescription, basePathUri)
228229

229-
val detailUrl =
230-
"%s/jobs/job?id=%s".format(UIUtils.prependBaseUri(parent.basePath), job.jobId)
230+
val detailUrl = "%s/jobs/job?id=%s".format(basePathUri, job.jobId)
231231
<tr id={"job-" + job.jobId}>
232232
<td sorttable_customkey={job.jobId.toString}>
233233
{job.jobId} {job.jobGroup.map(id => s"($id)").getOrElse("")}

0 commit comments

Comments
 (0)