diff options
author | Ergin Seyfe <eseyfe@fb.com> | 2016-04-28 16:16:28 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-04-28 16:16:28 +0100 |
commit | 23256be0d0846d4eb188a4d1cae6e3f261248153 (patch) | |
tree | 5c59f00bcfc0a97e56fc948b7107e232495bc1e1 /repl/scala-2.10 | |
parent | 7c6937a8859ebd3c971116dea54ef380c1636999 (diff) | |
download | spark-23256be0d0846d4eb188a4d1cae6e3f261248153.tar.gz spark-23256be0d0846d4eb188a4d1cae6e3f261248153.tar.bz2 spark-23256be0d0846d4eb188a4d1cae6e3f261248153.zip |
[SPARK-14576][WEB UI] Spark console should display Web UI url
## What changes were proposed in this pull request?
This is a proposal to print the Spark Driver UI link when spark-shell is launched.
## How was this patch tested?
Launched spark-shell in local mode and cluster mode. Spark-shell console output included following line:
"Spark context Web UI available at <Spark web url>"
Author: Ergin Seyfe <eseyfe@fb.com>
Closes #12341 from seyfe/spark_console_display_webui_link.
Diffstat (limited to 'repl/scala-2.10')
-rw-r--r-- | repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala b/repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala index 4ce776e17d..f1febb9497 100644 --- a/repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala +++ b/repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala @@ -125,6 +125,7 @@ private[repl] trait SparkILoopInit { command(""" @transient val sc = { val _sc = org.apache.spark.repl.Main.interp.createSparkContext() + _sc.uiWebUrl.foreach(webUrl => println(s"Spark context Web UI available at ${webUrl}")) println("Spark context available as 'sc' " + s"(master = ${_sc.master}, app id = ${_sc.applicationId}).") _sc |