kafka调试中遇到Connection to node -1 could not be established. Broker may not be available.
kafka报错内容:
WARN[ConsumerclientId=consumer-1,groupId=console-consumer-950]Connectiontonode-1couldnotbeestablished.Brokermaynotbeavailable.
这是因为你的配置文件中的PLAINTEXT跟你请求的内容不同。举例来说,我在配置文件里配置的listeners=PLAINTEXT://10.127.96.151:9092,但是我想测试的时候请求的是./kafka-console-consumer.sh--bootstrap-serverlocalhost:9092--topictopic1--from-beginning
正确的应该是./kafka-console-consumer.sh--bootstrap-server10.127.96.151:9092--topictopic1--from-beginning
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持毛票票。
热门推荐
10 广西考试祝福语结婚简短
11 猪年祝福语简短小孩
12 元旦祝福语送长辈简短
13 恭喜二宝祝福语简短
14 祝福语暖心话简短
15 国庆中秋祝福语简短兄弟
16 朋友订婚的祝福语简短
17 送弟弟中秋祝福语简短
18 爱生日祝福语简短独特