我开始使用ubuntu和Apache kafka,并在运行 bin/zookeeper-server-start.sh config/zookeeper.properties& 时出现以下问题
:~/Documentos/kafka-0.8.2.1-src$ Error: no se ha encontrado o cargado la clase principal org.apache.zookeeper.server.quorum.QuorumPeerMain
kafka:kafka-0.8.2.1 ubuntu:16.0
1 回答
问题出在你的Kafka下载上 . 您已经下载了
kafka-0.8.2.1-src
源包,它只包含Kafka源代码和外部(如zookeeper)类声明,并没有附带与之捆绑的外部类 .解决方案是你需要下载
binary package
,它看起来像kafka_2.10-0.8.2.1.tgz
,它包含了捆绑在其中的所有类 .Note: 如果您想使用
source package
,则必须在安装前在系统上编译它 .