1. 程式人生 > >kafka安裝測試報錯 could not be established. Broker may not be available.

kafka安裝測試報錯 could not be established. Broker may not be available.

修改 config 下配置檔案

vim server.properties

配置本機ip

listeners=PLAINTEXT://192.168.174.128:9092

執行命令時

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

將localhost 換成ip  192.168.174.128

 

ok