Apache kafka 服务器启动绑定到路径 /brokers/ids/0,地址为 deploy.static.akamaitechnologies.com:9092 而不是 localhost

Apache kafka server start binds to at path /brokers/ids/0 with addresses deploy.static.akamaitechnologies.com:9092 instead of localhost

我正在尝试在本地 运行 apache kafka,zookeeper 运行ning 正常并与本地主机绑定到端口 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) 

默认情况下,在 Kafka 属性中,listeners=PLAINTEXT://:9092,它将使用代理主机名。如果您只需要本地连接

,请将其更改为listeners=PLAINTEXT://127.0.0.1:9092

对于客户端连接,您还需要配置 advertised.listeners,它控制返回给客户端的 IP/hostname