Skip to content

Commit

Permalink
[SPARK-2118] spark class should complain if tools jar is missing.
Browse files Browse the repository at this point in the history
Author: Prashant Sharma <[email protected]>

Closes apache#1068 from ScrapCodes/SPARK-2118/tools-jar-check and squashes the following commits:

29e768b [Prashant Sharma] Code Review
5cb6f7d [Prashant Sharma] [SPARK-2118] spark class should complaing if tools jar is missing.
  • Loading branch information
ScrapCodes authored and pwendell committed Jun 23, 2014
1 parent a4bc442 commit 6dc6722
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/spark-class
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ else
fi

if [[ "$1" =~ org.apache.spark.tools.* ]]; then
if test -z "$SPARK_TOOLS_JAR"; then
echo "Failed to find Spark Tools Jar in $FWDIR/tools/target/scala-$SCALA_VERSION/" 1>&2
echo "You need to build spark before running $1." 1>&2
exit 1
fi
CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
fi

Expand Down

0 comments on commit 6dc6722

Please sign in to comment.