aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorCheolsoo Park <cheolsoop@netflix.com>2015-07-24 11:56:55 -0700
committerMarcelo Vanzin <vanzin@cloudera.com>2015-07-24 11:56:55 -0700
commit9a11396113d4bb0e76e0520df4fc58e7a8ec9f69 (patch)
treed0741e29b034965e62bcd63b22c78ae425f94720 /python
parent8399ba14873854ab2f80a0ccaf6adba499060365 (diff)
downloadspark-9a11396113d4bb0e76e0520df4fc58e7a8ec9f69.tar.gz
spark-9a11396113d4bb0e76e0520df4fc58e7a8ec9f69.tar.bz2
spark-9a11396113d4bb0e76e0520df4fc58e7a8ec9f69.zip
[SPARK-9270] [PYSPARK] allow --name option in pyspark
This is continuation of #7512 which added `--name` option to spark-shell. This PR adds the same option to pyspark. Note that `--conf spark.app.name` in command-line has no effect in spark-shell and pyspark. Instead, `--name` must be used. This is in fact inconsistency with spark-sql which doesn't accept `--name` option while it accepts `--conf spark.app.name`. I am not fixing this inconsistency in this PR. IMO, one of `--name` and `--conf spark.app.name` is needed not both. But since I cannot decide which to choose, I am not making any change here. Author: Cheolsoo Park <cheolsoop@netflix.com> Closes #7610 from piaozhexiu/SPARK-9270 and squashes the following commits: 763e86d [Cheolsoo Park] Update windows script 400b7f9 [Cheolsoo Park] Allow --name option to pyspark
Diffstat (limited to 'python')
-rw-r--r--python/pyspark/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/shell.py b/python/pyspark/shell.py
index 144cdf0b0c..99331297c1 100644
--- a/python/pyspark/shell.py
+++ b/python/pyspark/shell.py
@@ -40,7 +40,7 @@ if os.environ.get("ADD_FILES") is not None:
if os.environ.get("SPARK_EXECUTOR_URI"):
SparkContext.setSystemProperty("spark.executor.uri", os.environ["SPARK_EXECUTOR_URI"])
-sc = SparkContext(appName="PySparkShell", pyFiles=add_files)
+sc = SparkContext(pyFiles=add_files)
atexit.register(lambda: sc.stop())
try: