Skip to content
Snippets Groups Projects
Commit c6d1efba authored by zsxwing's avatar zsxwing Committed by Sean Owen
Browse files

[SPARK-7350] [STREAMING] [WEBUI] Attach the Streaming tab when calling ssc.start()

It's meaningless to display the Streaming tab before `ssc.start()`. So we should attach it in the `ssc.start` method.

Author: zsxwing <zsxwing@gmail.com>

Closes #5898 from zsxwing/SPARK-7350 and squashes the following commits:

e676487 [zsxwing] Attach the Streaming tab when calling ssc.start()
parent 5ffc73e6
No related branches found
No related tags found
No related merge requests found
......@@ -527,6 +527,7 @@ class StreamingContext private[streaming] (
validate()
sparkContext.setCallSite(DStream.getCreationSite())
scheduler.start()
uiTab.foreach(_.attach())
state = Started
}
......
......@@ -37,7 +37,10 @@ private[spark] class StreamingTab(val ssc: StreamingContext)
ssc.sc.addSparkListener(listener)
attachPage(new StreamingPage(this))
attachPage(new BatchPage(this))
parent.attachTab(this)
def attach() {
getSparkUI(ssc).attachTab(this)
}
def detach() {
getSparkUI(ssc).detachTab(this)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment