How to run following command to test kafka server

2019-06-17 07:05发布

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'

1条回答
Root(大扎)
2楼-- · 2019-06-17 07:18

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.

查看更多
登录 后发表回答