在Windows上的Apache卡夫卡错误 - Couldnot找到或加载主类QuorumPeerMain [英] Apache Kafka error on windows - Couldnot find or load main class QuorumPeerMain

查看:2296
本文介绍了在Windows上的Apache卡夫卡错误 - Couldnot找到或加载主类QuorumPeerMain的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载卡夫卡来自Apache网站2.8.0,和我使用的网站上给出的指示试图安装。但是,当我尝试启动zookeper服务器,我收到以下错误:

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 getting below error:

错误:无法找到或加载主类org.apache.zookeeper.server.quorum.QuorumPeerMain

Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

我的环境是Windows 7 64位。我试图按照下面的电子邮件链:<一href=\"http://mail-archives.apache.org/mod_mbox/kafka-users/201405.mbox/%3CCALUpvHXCtTKQFe59h_SN-6jZRScqWrgv0TWsjZ-HjV7AO19GOA@mail.gmail.com%3E\"相对=nofollow> Apache的电子邮件链。但仍然是有同样的问题。任何人都可以指导我在这?由于我很新的这一点,并不能找到谷歌/ Apache的卡夫卡电子邮件链的许多信息。

My environment is Windows 7 64 bit. I tried to follow below e-mail chain: Apache Email Chain . But still it's having same issue. Can anyone guide me in this? As I am very new to this and couldn't find many information on Google/Apache Kafka email chain.

推荐答案

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

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

这篇关于在Windows上的Apache卡夫卡错误 - Couldnot找到或加载主类QuorumPeerMain的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆