动物园管理员Kafka - 错误配置无效,异常退出
我尝试在 ZooKeeper kafka" rel="nofollow noreferrer">Apache Kafka ubuntu,我收到此错误:
卡夫卡进程也因此错误而终止
022-02-23 01:08:23,690] INFO shutting down (kafka.server.KafkaServer)
[2022-02-23 01:08:23,709] INFO App info kafka.server for 0 unregistered (org.apache.kafka.common.utils.AppInfoParser)
[2022-02-23 01:08:23,710] INFO shut down completed (kafka.server.KafkaServer)
[2022-02-23 01:08:23,711] ERROR Exiting Kafka. (kafka.Kafka$)
[2022-02-23 01:08:23,725] INFO shutting down (kafka.server.KafkaServer)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用
sudo
-daemon
仅在server-start
脚本中需要。您需要将目录更改为
bin
或config
文件夹所在的位置,或者对两者使用绝对路径。.properties.sh
不是任何文件的有效文件扩展名,除非您已重命名它们您确实应该将
$KAFKA_HOME/bin
文件夹添加到您的PATH
...只要提供绝对路径,属性文件的位置并不重要。总的来说,我建议遵循 Confluence Platform 的 APT 安装说明或使用
brew
,并使用systemctl
或brew services
来启动/停止 Kafka 和 Zookeeper 。Don't use
sudo
-daemon
is only needed with theserver-start
scripts.You need to change directories to the location where either
bin
orconfig
folders exist, or use absolute paths for both..properties.sh
is not a valid file extension for any files unless you've renamed themYou should really add
$KAFKA_HOME/bin
folder to yourPATH
... The location of the properties file doesn't matter as long as you give an absolute path.Overall, I suggest following the APT installation instructions from Confluent Platform or use
brew
, and usesystemctl
orbrew services
to start/stop Kafka and Zookeeper.