gpt4 book ai didi

apache-kafka - 无效的配置,从Kafka教程启动Zookeper时异常退出

转载 作者:行者123 更新时间:2023-12-04 10:06:45 27 4
gpt4 key购买 nike

我正在按照本教程尝试设置kafka,

https://kafka.apache.org/quickstart

当我在Zookeeper上做零件时出现此错误。
它当然与配置有关,但是我不知道该扩展什么。

bin/zookeeper-server-start.sh config/server.properties
[2018-03-17 03:27:11,623] INFO Reading configuration from: config/server.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
[2018-03-17 03:27:11,628] ERROR Invalid config, exiting abnormally (org.apache.zookeeper.server.quorum.QuorumPeerMain)
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing config/server.properties
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:154)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.lang.NumberFormatException: For input string: "initial.rebalance.delay.ms"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at java.lang.Long.parseLong(Long.java:631)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:242)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:150)
... 2 more
Invalid config, exiting abnormally

最佳答案

如果仔细观察,您会注意到启动Zookeeper的命令是:

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

使用 zookeeper.properties文件。

似乎您复制了使用 server.properties启动Kafka的命令。

关于apache-kafka - 无效的配置,从Kafka教程启动Zookeper时异常退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49334440/

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