【发布时间】:2021-07-13 20:54:12
【问题描述】:
我正在使用 confluent-5.1.1,我想使用 kafka 和 zookeeper。服务器工作正常,但 kafka 日志显示以下错误
ERROR [Producer clientId=confluent-metrics-reporter] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available
我已经对 server.properties 和 zookeeper.properties 进行了更改。 是否有任何其他更改我正在使用 2 个节点,而不是本地主机,我使用自己的 IP。 有人可以告诉我需要对其他文件执行哪些更改以消除错误
【问题讨论】:
-
ERRORRRRR [Producer clientId=confluent-metrics-reporter] 无法建立到节点 -1 (localhost/127.0.0.1:9092) 的连接。经纪人可能不可用
-
如果您不提供完整的错误跟踪和
server.properties文件的内容,我们应该如何回答您的问题? -
我在 server.properties 中更改了 zookeeper.connect 、 listeners 和 broker id
标签: apache-kafka apache-zookeeper confluent-platform