Skip to content

Commit 5cb6f7d

Browse files
committed
[SPARK-2118] spark class should complaing if tools jar is missing.
1 parent 9cb64b2 commit 5cb6f7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/spark-class

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

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

0 commit comments

Comments
 (0)