【问题标题】:How to resolve Kafka error: Connection to node 0 could not be established?如何解决 Kafka 错误:无法建立与节点 0 的连接?
【发布时间】:2020-06-23 21:29:46
【问题描述】:

我正在尝试运行 Kafka。我可以启动 zookeeper,但是当我使用 Kafka 服务器启动时

.\bin\windows\kafka-server-start.bat .\config\server.properties

我收到以下错误:

WARN [Controller id=0, targetBrokerId=0] Connection to node 0 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

有人知道如何解决这个问题吗?提前致谢。

【问题讨论】:

    标签: apache-kafka apache-zookeeper


    【解决方案1】:

    我昨天遇到了这个错误,今天早上刚刚解决了。对于遇到类似问题的其他人,我的修复是在 server.properties 中进行更改

    listeners=PLAINTEXT://:9092listeners=PLAINTEXT://127.0.0.1:9092

    【讨论】:

    • 我们也可以指定 listeners=PLAINTEXT://localhost:9092 而不是 listeners=PLAINTEXT://127.0.0.1:9092
    猜你喜欢
    • 2018-09-19
    • 2018-12-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-02
    • 2023-02-23
    • 1970-01-01
    • 2016-04-19
    • 2019-05-18
    相关资源
    最近更新 更多