Repository: spark
Updated Branches:
  refs/heads/branch-1.6 d821fae0e -> 8f0ead3e7


[SPARK-12672][STREAMING][UI] Use the uiRoot function instead of default root 
path to gain the streaming batch url.

Author: huangzhaowei <[email protected]>

Closes #10617 from SaintBacchus/SPARK-12672.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8f0ead3e
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8f0ead3e
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8f0ead3e

Branch: refs/heads/branch-1.6
Commit: 8f0ead3e79beb2c5f2731ceaa34fe1c133763386
Parents: d821fae
Author: huangzhaowei <[email protected]>
Authored: Wed Jan 6 12:48:57 2016 -0800
Committer: Shixiong Zhu <[email protected]>
Committed: Wed Jan 6 12:51:07 2016 -0800

----------------------------------------------------------------------
 .../org/apache/spark/streaming/scheduler/JobScheduler.scala     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8f0ead3e/streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
----------------------------------------------------------------------
diff --git 
a/streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
 
b/streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
index 1ed6fb0..2c57706 100644
--- 
a/streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
+++ 
b/streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
@@ -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
@@ -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(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to