[ERROR] sarama.NewSyncProducer error:kafka: client has run out of available brokers to talk to (Is y

[ERROR] sarama.NewSyncProducer error:kafka: client has run out of available brokers to talk to (Is your cluster reachable?)

这个提示里线索比较明显:Is your cluster reachable?

也就是:是否能连到集群?

出现此问题的原因

kafka集群并没有开启user password连接,但是客户端连接的时候使用了user password

解决方案

客户端连接去掉user password

猜你喜欢

转载自blog.csdn.net/hugo_lei/article/details/110223767
今日推荐