Skip to content

Commit

Permalink
[SPARK-12672][STREAMING][UI] Use the uiRoot function instead of defau…
Browse files Browse the repository at this point in the history
…lt root path to gain the streaming batch url.

Author: huangzhaowei <[email protected]>

Closes apache#10617 from SaintBacchus/SPARK-12672.
  • Loading branch information
SaintBacchus authored and zsxwing committed Jan 6, 2016
1 parent d821fae commit 8f0ead3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import org.apache.spark.Logging
import org.apache.spark.rdd.PairRDDFunctions
import org.apache.spark.streaming._
import org.apache.spark.streaming.ui.UIUtils
import org.apache.spark.util.{EventLoop, ThreadUtils, Utils}
import org.apache.spark.ui.{UIUtils => SparkUIUtils}
import org.apache.spark.util.{EventLoop, ThreadUtils}


private[scheduler] sealed trait JobSchedulerEvent
Expand Down Expand Up @@ -203,7 +204,7 @@ class JobScheduler(val ssc: StreamingContext) extends Logging {
try {
val formattedTime = UIUtils.formatBatchTime(
job.time.milliseconds, ssc.graph.batchDuration.milliseconds, showYYYYMMSS = false)
val batchUrl = s"/streaming/batch/?id=${job.time.milliseconds}"
val batchUrl = s"${SparkUIUtils.uiRoot}/streaming/batch/?id=${job.time.milliseconds}"
val batchLinkText = s"[output operation ${job.outputOpId}, batch time ${formattedTime}]"

ssc.sc.setJobDescription(
Expand Down

0 comments on commit 8f0ead3

Please sign in to comment.