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

Cannot connect to Broker (Kafka 2.0.0) #36

Open
dl1ely opened this issue May 9, 2019 · 2 comments
Open

Cannot connect to Broker (Kafka 2.0.0) #36

dl1ely opened this issue May 9, 2019 · 2 comments

Comments

@dl1ely
Copy link

dl1ely commented May 9, 2019

Running a 3-node-cluster with a Zookeeper on each node, Kafka 2.0.0. Although trying different things and studying the readme, i do not get a connection to a broker on the same machine, or any broker of my cluster. I tried:

  • -zookeeper localhost:2181
  • -zookeeper <full qualified hostname>:2181
    I also tried adding -broker-host, -broker-port and -broker-id, in different variations, no success. Error is unable to connect to broker, retrying in 5s (cannot connect).

Either i am missing something obvious that i could not extract from the Readme, or connection to a 2.0.0 broker is not possible. What is the commandline option(s) that is/are expected to do a health check against a local zookeeper/kafka? Thanks.

@mariano-dm
Copy link

Same here for kafka_2.11-0.10.2.0-cp1

INFO[0000] using topic broker-33-health-check for broker 33 health check
INFO[0000] using topic broker-33-health-check for broker 33 replication check
INFO[0005] unable to connect to broker, retrying in 5s (cannot connect)
INFO[0010] unable to connect to broker, retrying in 5s (cannot connect)
INFO[0014] unable to connect to broker, retrying in 5s (cannot connect)

Where can we enable debug logging for it ?
thanks

@ghost
Copy link

ghost commented Jul 29, 2019

@dl1ely and @mariano-dm I have the same issue and using the option -broker-id instead of -broker-host helped to solve my problem . Broker Id is an integer number (1,2,3...) which I see from kafka-manager tool. Hope this helps.

Update: broker.id is found in my configuration file: /opt/kafka/config/server.properties. My full command

./kafka-health-check  -zookeeper=broker1.examp.net:2181 -broker-id=1 -broker-host=broker1.example.net

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

2 participants