我尝试在本地运行apache Kafka,zookeeper运行良好,并与localhost绑定到端口2181。当我启动kafka服务器时,它失败并出现以下错误。可能是什么原因?
WARN [Controller id=0, targetBrokerId=0] Connection to node 0
(a23-202-231-169.deploy.static.akamaitechnologies.com/23.202.231.169:9092)
could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
1条答案
按热度按时间kupeojn61#
默认情况下,在Kafka属性中,
listeners=PLAINTEXT://:9092
将使用代理主机名。对于客户端连接,您还需要配置
advertised.listeners
,它控制返回给客户端的IP/主机名