WebUI — Base Web UI
-
Active Spark applications
-
Spark History Server
-
Spark Standalone cluster manager
-
Spark on Mesos cluster manager
Note
|
Spark on YARN uses a different web framework for the web UI. |
WebUI
is used as the parent of WebUITabs.
1 2 3 4 5 6 7 8 9 10 11 |
package org.apache.spark.ui abstract class WebUI { // only required methods that have no implementation // the others follow def initialize(): Unit } |
Note
|
WebUI is a private[spark] contract.
|
Method | Description | ||
---|---|---|---|
|
Used in implementations only to let them initialize their web components
|
WebUI | Description |
---|---|
|
|
|
|
|
Once bound to a Jetty HTTP server, WebUI
is available at an HTTP port (and is used in the web URL as boundPort
).
WebUI
is available at a web URL, i.e. http://[publicHostName]:[boundPort]
. The publicHostName is…FIXME and the boundPort is the port that the port the Jetty HTTP Server bound to.
Name | Description |
---|---|
|
Used when…FIXME |
|
Used when…FIXME |
|
Used when…FIXME |
|
Optional Used when…FIXME |
|
Defaults to the following if defined (in order):
Used exclusively when |
|
Used when…FIXME |
Tip
|
Enable Add the following line to
Refer to Logging. |
Creating WebUI Instance
WebUI
takes the following when created:
WebUI
initializes the internal registries and counters.
Note
|
WebUI is a Scala abstract class and cannot be created directly, but only as one of the implementations.
|
Detaching Page And Associated Handlers from UI — detachPage
Method
1 2 3 4 5 |
detachPage(page: WebUIPage): Unit |
detachPage
…FIXME
Note
|
detachPage is used when…FIXME
|
Detaching Tab And Associated Pages from UI — detachTab
Method
1 2 3 4 5 |
detachTab(tab: WebUITab): Unit |
detachTab
…FIXME
Note
|
detachTab is used when…FIXME
|
Detaching Handler — detachHandler
Method
1 2 3 4 5 |
detachHandler(handler: ServletContextHandler): Unit |
detachHandler
…FIXME
Note
|
detachHandler is used when…FIXME
|
Detaching Handler At Path — detachHandler
Method
1 2 3 4 5 |
detachHandler(path: String): Unit |
detachHandler
…FIXME
Note
|
detachHandler is used when…FIXME
|
Attaching Page to UI — attachPage
Method
1 2 3 4 5 |
attachPage(page: WebUIPage): Unit |
Internally, attachPage
creates the path of the WebUIPage that is /
(forward slash) followed by the prefix of the page.
attachPage
creates a HTTP request handler…FIXME
Note
|
|
Attaching Tab And Associated Pages to UI — attachTab
Method
1 2 3 4 5 |
attachTab(tab: WebUITab): Unit |
In the end, attachTab
adds the input WebUITab
to WebUITab tabs.
Note
|
attachTab is used when…FIXME
|
Attaching Static Handler — addStaticHandler
Method
1 2 3 4 5 |
addStaticHandler(resourceBase: String, path: String): Unit |
addStaticHandler
…FIXME
Note
|
addStaticHandler is used when…FIXME
|
Attaching Handler to UI — attachHandler
Method
1 2 3 4 5 |
attachHandler(handler: ServletContextHandler): Unit |
attachHandler
simply adds the input Jetty ServletContextHandler
to handlers registry and requests the ServerInfo to addHandler
(only if the ServerInfo
is defined).
Note
|
|
getBasePath
Method
1 2 3 4 5 |
getBasePath: String |
getBasePath
simply returns the base path.
Note
|
getBasePath is used exclusively when WebUITab is requested for the base path.
|
Requesting Header Tabs — getTabs
Method
1 2 3 4 5 |
getTabs: Seq[WebUITab] |
getTabs
simply returns the registered tabs.
Note
|
getTabs is used exclusively when WebUITab is requested for the header tabs.
|
Requesting Handlers — getHandlers
Method
1 2 3 4 5 |
getHandlers: Seq[ServletContextHandler] |
getHandlers
simply returns the registered handlers.
Note
|
getHandlers is used when…FIXME
|