原文:啟動kafka生產者報錯: WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

命令:. kafka console producer.sh broker list zookeeper: topic monitor 啟動kafka生產者報錯: 原因:zookeeper端口號寫錯了 總結:就算zookeeper端口寫錯了也能運行,但是只有再給生產者數據的時候才會報錯。 ...

2020-03-21 10:25 0 5927 推薦指數:

查看詳情

kafka: could not be established. Broker may not be available

本人小白一個,網上查資料,有很多解決方案,有關閉防火牆的,有修改配置文件的,有添加host的,試了之后發現還是解決不了,最后發現是命令用錯了 過程如下: cd /opt/kafka/bin #進入kafka安裝目錄下的bin ./kafka-topics.sh --describe ...

Thu Dec 16 17:35:00 CST 2021 0 1652
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM