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

2021-08-16 17:27:55 浏览数 (1)

[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

0 人点赞