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

前端 未结 3 1869
余生分开走
余生分开走 2021-01-11 10:32

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.

相关标签:
3条回答
  • 2021-01-11 10:39

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

    0 讨论(0)
  • 2021-01-11 10:52

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

    0 讨论(0)
  • 2021-01-11 11:03

    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

    0 讨论(0)
提交回复
热议问题