ontroller id=1, targetBrokerId=1] Connection to node 1 (/10.10.14.220:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-05-31 09:16:06,308] WARN [Controller id=1, targetBrokerId=1] Connection to node 1 (/10.10.14.220:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-05-31 09:16:06,409] WARN [Controller id=1, targetBrokerId=1] Connection to node 1 (/10.10.14.220:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-05-31 09:16:06,510] WARN [Controller id=1, targetBrokerId=1] Connection to node 1 (/10.10.14.220:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-05-31 09:16:06,612] WARN [Controller id=1, targetBrokerId=1] Connection to node 1 (/10.10.14.220:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)


解决方式:

将启动命令中的KAFKA_ADVERTISED_LISTENERS=PLAINTEXT值修改为localhost如下:

-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092

Logo

Kafka开源项目指南提供详尽教程,助开发者掌握其架构、配置和使用,实现高效数据流管理和实时处理。它高性能、可扩展,适合日志收集和实时数据处理,通过持久化保障数据安全,是企业大数据生态系统的核心。

更多推荐