sarama icon indicating copy to clipboard operation
sarama copied to clipboard

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

Open lianglinhuan opened this issue 3 years ago • 5 comments

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 avatar Sep 02 '22 08:09 lianglinhuan

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

lianglinhuan avatar Sep 02 '22 08:09 lianglinhuan

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

polin-x avatar Oct 10 '22 06:10 polin-x

x3

Juandavi1 avatar Jan 24 '23 01:01 Juandavi1

same problem here

vivek-rao-1985 avatar Feb 01 '23 21:02 vivek-rao-1985

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

Juandavi1 avatar Feb 04 '23 15:02 Juandavi1

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"}

txf0096 avatar Jun 06 '23 02:06 txf0096

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

cloverland avatar Jun 09 '23 08:06 cloverland

"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

dnwe avatar Aug 31 '23 02:08 dnwe

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/[email protected] It will work normally

javaDer avatar Sep 16 '23 07:09 javaDer