diff options
author | Kenichi Maehashi <webmaster@kenichimaehashi.com> | 2015-07-22 16:15:44 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-07-22 16:15:44 -0700 |
commit | 430cd7815dc7875edd126af4b90752ba8a380cf2 (patch) | |
tree | 447fe51e3434f5bdba13e8d61f46aee0be7a1bcc /repl/scala-2.11/src/main/scala | |
parent | 798dff7b4baa952c609725b852bcb6a9c9e5a317 (diff) | |
download | spark-430cd7815dc7875edd126af4b90752ba8a380cf2.tar.gz spark-430cd7815dc7875edd126af4b90752ba8a380cf2.tar.bz2 spark-430cd7815dc7875edd126af4b90752ba8a380cf2.zip |
[SPARK-9180] fix spark-shell to accept --name option
This patch fixes [[SPARK-9180]](https://issues.apache.org/jira/browse/SPARK-9180).
Users can now set the app name of spark-shell using `spark-shell --name "whatever"`.
Author: Kenichi Maehashi <webmaster@kenichimaehashi.com>
Closes #7512 from kmaehashi/fix-spark-shell-app-name and squashes the following commits:
e24991a [Kenichi Maehashi] use setIfMissing instead of setAppName
18aa4ad [Kenichi Maehashi] fix spark-shell to accept --name option
Diffstat (limited to 'repl/scala-2.11/src/main/scala')
-rw-r--r-- | repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala b/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala index eed4a379af..be31eb2eda 100644 --- a/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala +++ b/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala @@ -65,9 +65,9 @@ object Main extends Logging { val jars = getAddedJars val conf = new SparkConf() .setMaster(getMaster) - .setAppName("Spark shell") .setJars(jars) .set("spark.repl.class.uri", classServer.uri) + .setIfMissing("spark.app.name", "Spark shell") logInfo("Spark class server started at " + classServer.uri) if (execUri != null) { conf.set("spark.executor.uri", execUri) |