File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ export PYTHONSTARTUP="$SPARK_HOME/python/pyspark/shell.py"
89
89
if [[ -n " $SPARK_TESTING " ]]; then
90
90
unset YARN_CONF_DIR
91
91
unset HADOOP_CONF_DIR
92
- export PYSPARK_SUBMIT_ARGS=pyspark-shell
93
92
if [[ -n " $PYSPARK_DOC_TEST " ]]; then
94
93
exec " $PYSPARK_DRIVER_PYTHON " -m doctest $1
95
94
else
Original file line number Diff line number Diff line change @@ -38,10 +38,8 @@ def launch_gateway():
38
38
# proper classpath and settings from spark-env.sh
39
39
on_windows = platform .system () == "Windows"
40
40
script = "./bin/spark-submit.cmd" if on_windows else "./bin/spark-submit"
41
- submit_args = os .environ .get ("PYSPARK_SUBMIT_ARGS" )
42
- submit_args = submit_args if submit_args is not None else ""
43
- submit_args = shlex .split (submit_args )
44
- command = [os .path .join (SPARK_HOME , script )] + submit_args
41
+ submit_args = os .environ .get ("PYSPARK_SUBMIT_ARGS" , "pyspark-shell" )
42
+ command = [os .path .join (SPARK_HOME , script )] + shlex .split (submit_args )
45
43
46
44
# Start a socket that will be used by PythonGatewayServer to communicate its port to us
47
45
callback_socket = socket .socket (socket .AF_INET , socket .SOCK_STREAM )
You can’t perform that action at this time.
0 commit comments