How to run following command to test kafka server is installed properly or not?

拈花ヽ惹草 提交于 2019-12-23 08:05:02

问题


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:


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.



来源:https://stackoverflow.com/questions/37064939/how-to-run-following-command-to-test-kafka-server-is-installed-properly-or-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!