diff options
Diffstat (limited to 'run')
-rwxr-xr-x | run | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -66,6 +66,13 @@ BAGEL_DIR="$FWDIR/bagel" 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 + echo "You need to compile Spark before running this program" >&2 + exit 1 +fi + # Build up classpath CLASSPATH="$SPARK_CLASSPATH" CLASSPATH+=":$FWDIR/conf" |