Skip to content

Commit 6dc6722

Browse files
ScrapCodespwendell
authored andcommitted
[SPARK-2118] spark class should complain if tools jar is missing.
Author: Prashant Sharma <[email protected]> Closes #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.
1 parent a4bc442 commit 6dc6722

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/spark-class

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ else
130130
fi
131131

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

0 commit comments

Comments
 (0)