IBM / sarama

Sarama is a Go library for Apache Kafka.
MIT License
11.57k stars 1.76k forks source link

error: kafka: client has run out of available brokers to talk to: EOF #2325

Closed lianglinhuan closed 1 year ago

lianglinhuan commented 2 years ago
Versions

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama Kafka Go
1.36.0 2.8.1 1.18
Configuration

What configuration values are you using for Sarama and Kafka?

Logs

When filing an issue please provide logs from Sarama and Kafka if at all possible. You can set sarama.Logger to a log.Logger to capture Sarama debug output.

logs: CLICK ME

``` ```

Problem Description
lianglinhuan commented 2 years ago

I don't know why this error is reported, can you ask a professional to answer it? Honored

polin-x commented 2 years ago

hello, I have this problem too, did you solve it?

Juandavi1 commented 1 year ago

x3

vivek-rao-1985 commented 1 year ago

same problem here

Juandavi1 commented 1 year ago

Hi ! I achieve it ! I was working with test containers and I was shutting down the kafka container before the test is over.

Now it works !

Thanks

sN0wpeak commented 1 year ago

Is there any recent progress on this issue? I have same problem here. {"C":"sarama/consumergroup.go:237","L":"warn","M":"sarama NewClient error: kafka: client has run out of available brokers to talk to: 3 errors occurred:\n\t EOF\n\t EOF\n\t* EOF\n","T":"2023-06-05T10:23:20.875Z"}

cloverland commented 1 year ago

If I set SASL here, it is probably because the SASL certification has not passed

dnwe commented 1 year ago

"client has run out of available brokers to talk to" is a common error if there is a misconfiguration in protocol Version or SASL / SSL etc., but it needs the full logger output to diagnose

I'm going to close this old issue as the original post didn't include that and people are stumbling upon this whilst search for their own problem, but it would be better to raise a separate issue so that we can diagnose each case individually

javaDer commented 1 year ago

Hello everyone, this is how I solved this problem: for reference only: I downgraded sarama to v1.19.0. The code is as follows: go get github.com/Shopify/sarama@v1.19.0 It will work normally