Check if classpath is empty in kafka-run-class.sh
Author: Evgeny Veretennikov
Reviewers: Ismael Juma
Closes from evis/kafka-run-class-check-classpath
@@ -140,6 +140,11 @@ do
done
shopt -u nullglob
+if [ -z "$CLASSPATH" ] ; then
+ echo "Classpath is empty. Please build the project first e.g. by running './gradlew jar -Pscala_version=$SCALA_VERSION'"
+ exit 1
+fi
+
# JMX settings
if [ -z "$KAFKA_JMX_OPTS" ]; then
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "
