-
Bug
-
Resolution: Done
-
Minor
-
1.3.0.GA
-
Workaround Exists
-
-
Following the official documentation link to enable Zookeeper authentication, when starting Zookeeper it will fail showing the error:
/opt/kafka/bin/kafka-run-class.sh: line 297: : No such file or directory
The referenced line in the script is in the 'nohup' execution:
# Launch mode if [ "x$DAEMON_MODE" = "xtrue" ]; then nohup $JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@" > "$CONSOLE_OUTPUT_FILE" 2>&1 < /dev/null & else exec $JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@" fi
I have checked that when you are starting Zookeeper in daemon mode, and the environment variable EXTRA_ARGS is set, the value for $CONSOLE_OUTPUT_FILE is empty, and then, redirect the output to 'nothing' fails.