spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vanzin <>
Subject [GitHub] spark pull request: [SPARK-4924] Add a library for launching Spark...
Date Thu, 12 Mar 2015 16:54:51 GMT
Github user vanzin commented on a diff in the pull request:
    --- Diff: bin/pyspark ---
    @@ -95,26 +83,13 @@ export PYTHONPATH="$SPARK_HOME/python/lib/$PYTHONPATH"
     # Load the PySpark script when ./pyspark is used interactively:
    -export PYTHONSTARTUP="$FWDIR/python/pyspark/"
    -# Build up arguments list manually to preserve quotes and backslashes.
    -# We export Spark submit arguments as an environment variable because must run
as a
    -# PYTHONSTARTUP script, which does not take in arguments. This is required for IPython
    -gatherSparkSubmitOpts "$@"
    -for i in "${SUBMISSION_OPTS[@]}"; do
    -  if [[ $i =~ \" ]]; then i=$(echo $i | sed 's/\"/\\\"/g'); fi
    -  if [[ $i =~ $whitespace ]]; then i=\"$i\"; fi
    --- End diff --
    It depends on how the unit tests are run. Are they run through spark-submit? The you just
pass `--jars` to spark-submit.
    If they're run by the code under the `$SPARK_TESTING` in this file, then setting that
env variable will probably work.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message