I installed Kafka on a remote server, and when I tried to run
~/kafka/bin/zookeeper-server-start.sh ~/kafka/config/zookeeper.properties
And I r
Like the other answers -- I got this to work on Java 9. Had to make the following changes:
Edit the file bin/kafka-run-class.sh
Near the end of the file (around line 248) find the following block:
if [ "x$GC_LOG_ENABLED" = "xtrue" ]; then
GC_LOG_FILE_NAME=$DAEMON_NAME$GC_FILE_SUFFIX
KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps "
fi
Remove the 2 flags : -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps
and save the file.
Kafka should start okay on Java 9