问题描述
我是此Kafka官方教程,用于在Ubuntu上安装和测试kafka.首先,我从此处下载了Kafka 0.9.0.1:http://ftp.cixug.es/apache/kafka/0.9.0.1/kafka-0.9.0.1-src.tgz
I am this official Kafka tutorial to install and test kafka on Ubuntu.First, I downloaded Kafka 0.9.0.1 from here: http://ftp.cixug.es/apache/kafka/0.9.0.1/kafka-0.9.0.1-src.tgz
然后,从kafka-0.9.0.1-src,运行以下命令:
Then, from kafka-0.9.0.1-src, I runned this command:
bin/zookeeper-server-start.sh config/zookeeper.properties
,并收到以下错误消息:
and got the following error message:
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
也许问题是我将我的Kafka从0.8升级到0.9.0.1,并且我以前已经使用 sudo apt-get install zookeeperd
安装了ZooKeeper.要删除Kafka的早期版本,我只是使用 rm -rf kafka-0.8
删除了旧版本的目录.我应该卸载/安装其他可以使用Kaka-0-9-0-1的东西吗?
Maybe the problem is that I upgraded my Kafka from 0.8 to 0.9.0.1, and I have previously installed ZooKeeper using sudo apt-get install zookeeperd
.To remove previous version of Kafka, I just deleted a directory with an old version using rm -rf kafka-0.8
. Should I uninstall/install something else to be able to use Kaka-0-9-0-1?
推荐答案
您已经下载了源程序包.下载 binary 封装Kafka并进行测试.
You've downloaded the source package. Download the binary package of Kafka and do testing.
这篇关于Kafka 0.9.0.1:找不到或加载主类org.apache.zookeeper.server.quorum.QuorumPeerMain的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!