且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Windows上的Apache卡夫卡错误 - Couldnot找到或加载主类QuorumPeerMain

更新时间:2022-03-18 08:19:20

从卡夫卡的根文件夹中运行以下命令:

Run these commands from your Kafka root folder:

CD斌/窗口

然后运行Zookeper服务器:

Then run Zookeper server:

动物园管理员,服务器的start.bat ../../配置/ zookeeper.properties

然后运行卡夫卡服务器:

Then run 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.:

创建一个话题:

卡夫卡topics.bat --create --zookeeper本地主机:2181 --replication因子1 --partitions 1 --topic测试

列表主题:

卡夫卡topics.bat --list --zookeeper本地主机:2181