kafka报错:could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClie

执行kafka命令报错

kafka报错:could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClie

 排查:

命令中的kafka地址和端口是否填写正确

可查看config目录下的server.properties中的listeners=PLAINTEXT://xx.xx.xx.xx:9092,kafka命令中的ip和端口要跟这个配置文件中保持一致

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/0d0adbee78.html