gpt4 book ai didi

apache-zookeeper - 设置 kafka 时的 Zookeeper 问题

转载 作者:行者123 更新时间:2023-12-04 16:31:14 25 4
gpt4 key购买 nike

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

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

输入上述命令时出现以下错误:
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?我怎么能解决这个问题?

最佳答案

对于 Windows:

  • 转至 kafka_2.11-2.0.0\bin\windows文件夹
  • 然后运行 ​​zookeeper-server-start.bat ../../config/zookeeper.properties
  • 关于apache-zookeeper - 设置 kafka 时的 Zookeeper 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25421758/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com