设置kafka的Zookeeper问题

设置kafka的Zookeeper问题

本文介绍了设置kafka的Zookeeper问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要安装kafka,我下载了kafka tar文件夹.要启动服务器,我尝试了以下命令:

To install kafka , I downloaded the kafka tar folder. To start the server I tried this command :

bin/zookeeper-server-start.sh config/zookeeper.properties

输入上述命令时发生以下错误:

The following error occured on entering the above command:

INFO Reading configuration from: config/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
[2014-08-21 11:53:55,748] FATAL Invalid config, exiting abnormally (org.apache.zookeeper.server.quorum.QuorumPeerMain)
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing config/zookeeper.properties
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:110)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:99)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:76)
Caused by: java.lang.IllegalArgumentException: config/zookeeper.properties file is missing
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:94)
    ... 2 more
Invalid config, exiting abnormally

是否需要单独设置Zookeeper?我该如何解决?

Is it that I need to setup zookeeper separately? How could I resolve this?

推荐答案

这基本上是因为
java.lang.IllegalArgumentException: config/zookeeper.properties file is missing

This is basically because of this
java.lang.IllegalArgumentException: config/zookeeper.properties file is missing

如果您可以分享您到目前为止所做的确切工作,这将非常有用.还要检查在上述位置是否存在相同的文件,并且您正在从正确的位置运行命令..应该从您的$KAFKA_HOME文件夹(已提取tar文件的位置)运行该文件

it would be really useful if you could share what exactly have you done so far. Also check if the same file exists at the said location and you are running the command from the correct location .. it is supposed to be run from your $KAFKA_HOME folder (where you've extracted the tar file)

这篇关于设置kafka的Zookeeper问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-28 02:56