当你遇到 Kafka 报错 "client has run out of available brokers to talk to (is your cluster reachable?)" 时,这通常表示 Kafka 客户端无法成功连接到集群中的任何broker。为了解决这个问题,你可以按照以下步骤进行排查和修复: 1. 确认Kafka客户端配置是否正确 检查bootstrap.servers配置:确保客户端配置文件(如ap...
1 client, err := sarama.NewSyncProducer([]string{"175.24.115.7:9092"}, config) 所以在连接的时候又出现了下面这个错误: producer closed,err: kafka: client has run out of available brokers to talk to (Is your cluster reachable?) 然后我修改了端口,就可以正常使用了: listeners=PLAINTEXT://:9092...
client, err := sarama.NewSyncProducer([]string{"175.24.115.7:9092"}, config) 所以在连接的时候⼜出现了下⾯这个错误:producer closed,err: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)然后我修改了端⼝,就可以正常使⽤了:listeners=PLAINTEXT:/...
kafka: client has run out of available brokers to talk to: dial tcp 127.0.0.1:19092: connect: connection refused [Controller id=1, targetBrokerId=3] Client requested connection close from node 3 (org.apache.kafka.clients.NetworkClient) 这里先贴一个可以用的 docker-compose.yml 配置,后面对其中...
kafka: client has run out of available brokers to talk to: dial tcp 127.0.0.1:19092: connect: connection refused 端口配置没有理解清楚,KAFKA_LISTENERS 中对外的监听端口必须是被映射出去的 9092 本身,否则宿主机无法访问 [Controller id=1, targetBrokerId=3] Client requested connection close from node...
2、问题现象:客户原问题x使用ip:port无法连接,报kafka: client has run out of available brokers to talk to: EOF 网络也是通的 加了这个config.Version = sarama.V1_1_1_0 就可以发送成功了 3、kafka 使用 github.com/Shopify/sarama v1.32.0 --连接 0.10.2 报错 ...
Error Init Kafka Client panic: kafka: client has run out of available brokers to talk to (Is your cluster reachable?) goroutine 1 [running]: main.NewExporter(0xc42000ea80, 0x3, 0x4, 0x100, 0x8ea778, 0x0, 0x8ea778, 0x0, 0x0, 0x8ea778, ...) ...
Error Init Kafka Client: kafka: client has run out of available brokers to talk to: dial tcp: lookup kafka on 10.96.0.10:53: no such host below is the kafka-exporter-deployment.yaml file apiVersion: v1 kind: ConfigMap metadata: name: kafka-exporter-config data: kafka-exporter.yml: | ...
[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 解...
"Code":"CORE:RUNTIME", "Description":"kafka: client has run out of available brokers to talk to (Is your cluster reachable?)" } 案例 1.按照 Kafka 集群信息,填写 kafka 连接器配置。 2.新建流,将 kafka consumer 作为 trigger 节点。