1、producer close, err: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
未开放端口,关闭防火墙或者开发指定端口(9092)
firewall-cmd --add-port=9092/tcp --permanent # 开放 9092 端口
firewall-cmd --reload # 重新加载
firewall-cmd --list-ports # 查看所有开放端口
firewall-cmd --add-port=9092/tcp --permanent && firewall-cmd --reload && firewall-cmd --list-ports
2、send msg failed, err: dial tcp [::1]:9092: connectex: No connection could be made because the target
允许外部端口连接,修改配置文件 config/server.properties
listeners=PLAINTEXT://0.0.0.0:9092 # 监听所有网卡地址,允许外部端口连接
advertised.listeners=PLAINTEXT://192.168.0.113:9092 # 外部代理地址
3、其他问题