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 /bin/spark-shell | |
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 'bin/spark-shell')
-rwxr-xr-x | bin/spark-shell | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/spark-shell b/bin/spark-shell index a6dc863d83..00ab7afd11 100755 --- a/bin/spark-shell +++ b/bin/spark-shell @@ -47,11 +47,11 @@ function main() { # (see https://github.com/sbt/sbt/issues/562). stty -icanon min 1 -echo > /dev/null 2>&1 export SPARK_SUBMIT_OPTS="$SPARK_SUBMIT_OPTS -Djline.terminal=unix" - "$FWDIR"/bin/spark-submit --class org.apache.spark.repl.Main "$@" + "$FWDIR"/bin/spark-submit --class org.apache.spark.repl.Main --name "Spark shell" "$@" stty icanon echo > /dev/null 2>&1 else export SPARK_SUBMIT_OPTS - "$FWDIR"/bin/spark-submit --class org.apache.spark.repl.Main "$@" + "$FWDIR"/bin/spark-submit --class org.apache.spark.repl.Main --name "Spark shell" "$@" fi } |