1

i was following this step to download apache kafka into my device windows https://www.confluent.io/blog/set-up-and-run-kafka-on-windows-linux-wsl-2/

but when i did this bin/zookeeper-server-start.sh config/zookeeper.properties

i always stuck with this error Error Classpath is empty. Please build the project first e.g.

where my wrong at?

1

4 Answers 4

9

Sounds like you might have downloaded the Kafka sources (labeled src) rather than the binaries

Download the binary link for the desired Kafka version from here: https://kafka.apache.org/downloads

Sign up to request clarification or add additional context in comments.

2 Comments

so what should i do sir? i dont understand
Download the correct binary package instead (the one without src in the name)
1

check the space between directories where you have downloaded your kafka. Remove space and run again

Comments

1

Make sure you have download the binaries. If youre sure you have the binary then in your terminal navigate to the directory kafka is stored in and type "pwd" and check the working directory for a space.

For example..

On macos I was working in a directory called. "Mobile Dev". When I got the working directory with pwd it showed this.

/Users/chris/Desktop/Mobile Dev/kafka_2.13-3.9.0

changed to this

/Users/chris/Desktop/MobileDev/kafka_2.13-3.9.0

So then I renamed my directory from Mobile Dev to MobileDev and everything worked great after that.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
0

For wilndows commands we need put . represents current directory

.\bin\windows\kafka-server-start.bat .\config\server.properties

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.