diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-01-17 11:14:47 -0800 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-01-17 11:14:47 -0800 |
commit | 892c32a14b89139b7bd89e141fc90b148a67ce68 (patch) | |
tree | cb9d0516123de7be8e93277b5b6ef5dfd93d62ae /run | |
parent | 4beb084f6468ff738a0c267dd798d95011c88321 (diff) | |
download | spark-892c32a14b89139b7bd89e141fc90b148a67ce68.tar.gz spark-892c32a14b89139b7bd89e141fc90b148a67ce68.tar.bz2 spark-892c32a14b89139b7bd89e141fc90b148a67ce68.zip |
Warn users if they run pyspark or spark-shell without compiling Spark
Diffstat (limited to 'run')
-rwxr-xr-x | run | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -65,6 +65,13 @@ EXAMPLES_DIR="$FWDIR/examples" BAGEL_DIR="$FWDIR/bagel" 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 + echo "You need to compile Spark before running this program" >&2 + exit 1 +fi + # Build up classpath CLASSPATH="$SPARK_CLASSPATH" CLASSPATH+=":$FWDIR/conf" |