WARN Connection to node 2 could not be established. Broker may not be available. (

启动 kafka 集群, 出现这个问题

 WARN Connection to node 2 could not be established. Broker may not be available. (

 vi config/server.properties 修改下面的"your local host"为自己的host 

listeners = PLAINTEXT://your.local.host:9092

  

2、修改 /etc/hostname

  改为所需要的hostname

原文地址:https://www.cnblogs.com/Jomini/p/11658764.html