diff options
author | Reynold Xin <rxin@cs.berkeley.edu> | 2013-05-16 17:33:56 -0700 |
---|---|---|
committer | Reynold Xin <rxin@cs.berkeley.edu> | 2013-05-16 17:33:56 -0700 |
commit | 6c27c38451a9f7b7f870949d2838bc8f78f09892 (patch) | |
tree | 83b197e9b11d0292d7aa6ce8b7c1290bfc0ea0e2 /run | |
parent | dc146406aefa4285d2a2a5d9d45f2ef883e9ef73 (diff) | |
parent | 43644a293f5faec088530cf3a84d3680f2a103af (diff) | |
download | spark-6c27c38451a9f7b7f870949d2838bc8f78f09892.tar.gz spark-6c27c38451a9f7b7f870949d2838bc8f78f09892.tar.bz2 spark-6c27c38451a9f7b7f870949d2838bc8f78f09892.zip |
Merge pull request #615 from rxin/build-fix
Maven build fix & two other small changes
Diffstat (limited to 'run')
-rwxr-xr-x | run | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -102,12 +102,18 @@ STREAMING_DIR="$FWDIR/streaming" PYSPARK_DIR="$FWDIR/python" # Exit if the user hasn't compiled Spark -if [ ! -e "$REPL_DIR/target" ]; then - echo "Failed to find Spark classes in $REPL_DIR/target" >&2 +if [ ! -e "$CORE_DIR/target" ]; then + echo "Failed to find Spark classes in $CORE_DIR/target" >&2 echo "You need to compile Spark before running this program" >&2 exit 1 fi +if [[ "$@" = *repl* && ! -e "$REPL_DIR/target" ]]; then + echo "Failed to find Spark classes in $REPL_DIR/target" >&2 + echo "You need to compile Spark repl module before running this program" >&2 + exit 1 +fi + # Build up classpath CLASSPATH="$SPARK_CLASSPATH" CLASSPATH="$CLASSPATH:$FWDIR/conf" |