I am setting up Kafka in my local. I have unzipped the 2.12 version and started zookeeper. Zookeeper is up and running but when I am trying to start kafka using the command .\bin\windows\kafka-server-start.bat .\config\server.properties
, it is not showing any output.
I have also tried in git bash using the command bin/kafka-server-start.sh config/server.properties
, it is giving error as
/c/kafka/kafka_2.12-2.1.0/bin/kafka-run-class.sh: line 306: C:\Program: No such file or directory.
Can you please help me with the solution.
I use git bash on windows, and run the scripts in kafka_2.12-2.2.0\bin (not kafka_2.12-2.2.0\bin\windows).
Add double quotes around the JAVA term, in line 306.
exec "$JAVA" $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@"
If that does not help, add "set -x" at the top of the "kafka-run-class.sh" script to see the real problem.
#!/bin/bash
set -x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With