Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3916#discussion_r25307345
  
    --- Diff: bin/pyspark ---
    @@ -123,14 +94,6 @@ if [[ -n "$SPARK_TESTING" ]]; then
       exit
     fi
     
    -# If a python file is provided, directly run spark-submit.
    -if [[ "$1" =~ \.py$ ]]; then
    -  echo -e "\nWARNING: Running python applications through ./bin/pyspark is 
deprecated as of Spark 1.0." 1>&2
    -  echo -e "Use ./bin/spark-submit <python file>\n" 1>&2
    -  primary="$1"
    -  shift
    -  gatherSparkSubmitOpts "$@"
    -  exec "$FWDIR"/bin/spark-submit "${SUBMISSION_OPTS[@]}" "$primary" 
"${APPLICATION_OPTS[@]}"
    -else
    -  exec "$PYSPARK_DRIVER_PYTHON" $PYSPARK_DRIVER_PYTHON_OPTS
    -fi
    +export PYSPARK_DRIVER_PYTHON
    +export PYSPARK_DRIVER_PYTHON_OPTS
    +exec "$SPARK_HOME"/bin/spark-submit pyspark-shell-main "$@"
    --- End diff --
    
    I don't think it's currently possible to move much more code out of 
pyspark, even if I'd like to, because it's also used to run unit tests (see `if 
[[ -n "$SPARK_TESTING" ]]` check).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to