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

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

    I downloaded latest stable Kafka from Apache and instruction mentioned by Matheus Felipe worked as expected.

    I downloaded binary option - Scala 2.11 @ http://kafka.apache.org/downloads

    0 讨论(0)
  • 2020-12-05 08:40

    Run these commands from your Kafka root folder:

    cd bin\windows

    Then run Zookeper server:

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

    Then run Kafka server:

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


    The gotcha here is to run the .bat files from the /bin/windows folder, so after you run your servers with the steps above and want to follow up with the tutorial, make sure you are running the correct batch files to create topics and whatnot, e.g.:

    Create a topic:

    kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

    List topics:

    kafka-topics.bat --list --zookeeper localhost:2181

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