GitHub user nblintao opened a pull request:
https://github.com/apache/spark/pull/14319
[SPARK-16635][WEBUI][SQL] Provide Session support in the Spark UI
## What changes were proposed in this pull request?
Add a Session Tab and the related Session Page in the Spark UI.
The page could show all properties configured for the session. It could be
updated to the latest configuration after refreshing, compared to the
SparkContext configurations showed in the Environments Page which cannot be
updated during runtime.
## How was this patch tested?
Manually tested and viewed, and unit tests.
When a `spark-shell` is opened, the Session page could be found at the
related web UI (e.g. http://192.168.1.104:4040/session/), showing all the
properties of the session.
First input lines below into the shell, a new row about "Property A" could
be found at the Session page after refreshing.
```scala
import org.apache.spark.sql.SparkSession
SparkSession.builder.config("Property A", "the value of Property
A").getOrCreate()
```
Then input the line below, another row is shown.
```scala
spark.conf.set("Property B", "the value of Property B")
```
Screenshot:

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nblintao/spark sessionSupport
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14319.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14319
----
commit f7741a0d343ec633a38316e489b709e84d1ccf96
Author: Tao Lin <[email protected]>
Date: 2016-07-22T15:04:03Z
add session support in the web UI
----
---
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]