Apache Kafka error on windows - Couldnot find or load main class QuorumPeerMain

后端 未结 14 813
盖世英雄少女心
盖世英雄少女心 2020-12-05 07:47

I just downloaded Kafka 2.8.0 from Apache website, and I am trying to setup using the instructions given on the website. But when I try to start zookeper server, I am gettin

14条回答
  •  再見小時候
    2020-12-05 08:18

    I'm running on OS X and I found that having spaces anywhere in the path leading to my Kafka base directory led to this exact error message. Renaming things without spaces solved the problem with no other fix.

    As an example, my Kafka install was sitting at /Users/me/Kafka Demo/kafka_2.11-0.9.0.1 which caused that error when I tried to start Zookeeper. All I did was rename things as /Users/me/KafkaDemo/kafka_2.11-0.9.0.1 and everything worked fine.

提交回复
热议问题