Error: Could not find or load main class config.zookeeper.properties
Asked Answered
A

3

14

I am trying to execute a sample producer consumer application using Apache Kafka. I downloaded it from https://www.apache.org/dyn/closer.cgi?path=/kafka/0.10.0.0/kafka-0.10.0.0-src.tgz . Then I started following the steps given in http://www.javaworld.com/article/3060078/big-data/big-data-messaging-with-kafka-part-1.html.

When I tried to run bin/zookeeper-server-start.sh config/zookeeper.properties, I am getting Error: Could not find or load main class config.zookeeper.properties I googled about the issue but didn't get any useful information on this. Can anyone help me to continue?

Ashtray answered 30/6, 2016 at 7:53 Comment(2)
You've downloaded the source package. Download the binary package of Kafka and do testing. apache.org/dyn/closer.cgi?path=/kafka/0.10.0.0/…Curmudgeon
@KamalC Thanks a lot..! Worked fine. Can you please put this as answer?Ashtray
C
35

You've downloaded the source package. Download the binary package of Kafka and do testing.

Curmudgeon answered 30/6, 2016 at 10:4 Comment(0)
M
4

You have to download the binary version from the official Kafka web site.

Mcguigan answered 22/3, 2017 at 17:19 Comment(0)
O
1

Assuming you have the correct binary version check to see that you do not already have CLASSPATH defined in your environment. If you do and the defined CLASSPATH has a space in it (e.g.C:\Program Files\<>) then neither zookeeper or kafka will start.

To solve this either delete your existing CLASSPATH or modify the startup script that builds the zookeeper and kafka CLASSPATH values, putting your CLASSPATH entry in double quotes before the path is built

Orthoepy answered 23/4, 2018 at 13:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.