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

    https://github.com/apache/spark/pull/3916#discussion_r25284588
  
    --- 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 --
    
    how much of the rest of the code here can be / should be done in Java? 
Looks like you've already removed most of the logic (with args parsing and 
whitespace escaping). Is there more that we can/should move out of this script?


---
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