I have installed Kafka as well zookeeper. Zookeeper is working fine. However, when I try to run Kafka server, I get the below error. Please help me with a solution for this problem. Thank you in advance!!!
Command run from C:\kafka-0.9.0.1 :
.\bin\windows\kafka-server-start.bat .\config\server.properties
Error message:
Classpath is empty. Please build the project first e.g. by running 'gradlew jarAll'
Use 'systemctl status kafka' to check the status.
Run Kafka Consumer Console Kafka provides the utility kafka-console-consumer.sh which is located at ~/kafka-training/kafka/bin/kafka-console-producer.sh to receive messages from a topic on the command line. Create the file in ~/kafka-training/lab1/start-consumer-console.sh and run it.
When you installed Kafka, did you download from a source download or a binary download? This problem occurs when you download a source distribution.
To fix this, download via the binary download link:
Kafka 0.11.0.0 Binary
Also, the bat files for windows seem to have some problems, so I suggest following the guide here:
http://blog.anilot.tk/2014/08/06/Set-Up-Kafka-On-Windows/
Using the bat files from the Github repository linked in the guide.
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