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

后端 未结 14 833
盖世英雄少女心
盖世英雄少女心 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:19

    I also got the same problem in Windows platform due to keeping the kafka_2.12-2.3.0 folder in the Program Files. I changed the Kafka directory from Program Files to C:\ drive root directory. It worked fine after executing the following commands:

    First, go to the Kafka root folder:

    cd C:\kafka_2.12-2.3.0
    

    Run Zookeeper server:

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

    Then Run Kafka Server:

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

提交回复
热议问题