kafka-health-check icon indicating copy to clipboard operation
kafka-health-check copied to clipboard

Cannot connect to Broker (Kafka 2.0.0)

Open dl1ely opened this issue 5 years ago • 2 comments

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.

dl1ely avatar May 09 '19 21:05 dl1ely

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

mariano-dm avatar Jun 14 '19 20:06 mariano-dm

@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

ghost avatar Jul 29 '19 10:07 ghost