Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/8791#discussion_r40165699
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
---
@@ -190,10 +191,20 @@ class JobScheduler(val ssc: StreamingContext) extends
Logging {
}
private class JobHandler(job: Job) extends Runnable with Logging {
+ import JobScheduler._
+
def run() {
- ssc.sc.setLocalProperty(JobScheduler.BATCH_TIME_PROPERTY_KEY,
job.time.milliseconds.toString)
- ssc.sc.setLocalProperty(JobScheduler.OUTPUT_OP_ID_PROPERTY_KEY,
job.outputOpId.toString)
try {
+ val formattedTime = UIUtils.formatBatchTime(
+ job.time.milliseconds, ssc.graph.batchDuration.milliseconds,
showYYYYMMSS = false)
+ val batchUrl = s"/streaming/batch/?id=${job.time.milliseconds}"
+ val batchLinkText = s"[output operation ${job.outputOpId}, batch
time ${formattedTime}]"
+
+ ssc.sc.setJobDescription(
+ s"""Streaming job from <a href="$batchUrl">$batchLinkText</a>""")
--- End diff --
Whoever uses it will get the data as text. Only the UI would actually
process it as a link. Nothing breaks.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]