Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Init Kafka Client: kafka: client has run out of available brokers to talk to: EOF #416

Open
freeshow opened this issue Nov 29, 2023 · 8 comments

Comments

@freeshow
Copy link

kafka version : kafka_2.11-0.11.0.0
kafka_exporter version: 1.7.0

when i execute:

./kafka_exporter --kafka.server=xxxxx:9092

error:

[hadoop@kfk1 kafka-exporter]$ ./kafka_exporter --kafka.server=kfk1:9092        
I1129 17:38:33.397001   27559 kafka_exporter.go:800] Starting kafka_exporter (version=1.7.0, branch=HEAD, revision=7e840e81a0170375214e2c1e1dc7ce94aeff8712)
F1129 17:38:34.154931   27559 kafka_exporter.go:901] Error Init Kafka Client: kafka: client has run out of available brokers to talk to: EOF
@fadetop
Copy link

fadetop commented Dec 19, 2023

same question

@SaturnEver17
Copy link

the same question

@wagnerdevoteam
Copy link

+1

@wagnerdevel
Copy link

wagnerdevel commented Dec 22, 2023

This worked for me:

sasl:
enabled: true
handshake: true
username: ************
password: ************
mechanism: "scram-sha256"

tls:
enabled: true
insecureSkipTlsVerify: true
caFile: ""
certFile: ""
keyFile: ""

Ref.: #116 (comment)

@dsohaliya-ontic
Copy link

dsohaliya-ontic commented Dec 25, 2023

getting this same error. Does any one know the solution?

Edit: Found the solution. I think kafka exporter has issue with identifying the version of kafka server. So when I added version flag in exporter ./kafka_exporter --kafka.server=localhost:9092 --kafka.version=1.1.0 it worked just fine.

@sorushsaghari
Copy link

having same error with kafka 3.6.1 and kraft:

1 kafka_exporter.go:901] Error Init Kafka Client: kafka: client has run out of available brokers to talk to: 3 errors occurred:

i dont have any authentication or tls mechanism

@yimengyisheng
Copy link

the same question

@cnoam
Copy link

cnoam commented Jul 31, 2024

It looks to me (just installed it now) that the kafka-exporter needs to see the kafka server running (i.e. depends on, and need to wait a while until the kafka server is operational and 'open for buisness'.

I tried it using docker compose to enforce the dependency, and only when manualy starting the exporter later, it worked ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants