Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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'

like image 376
A shinde Avatar asked May 06 '16 05:05

A shinde


People also ask

How do I check if a Kafka server is running successfully?

Use 'systemctl status kafka' to check the status.

Where do Kafka commands run?

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.


1 Answers

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.

like image 183
Cody Ferguson Avatar answered Sep 19 '22 23:09

Cody Ferguson