Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Executing consumer group command failed due to Request GROUP_COORDINATOR failed on brokers List(localhost:9092 (id: -1 rack: null))

Tags:

apache-kafka

I am using single node Kafka cluster(version 0.10.2) and single node zookeeper (3.4.9). I am having approx 310 topics with Avg 100 partitions per topic. On Kafka broker when I am running the command to check consumer status in a group

./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group

Most of the time it is throwing an error:

Error: Executing consumer group command failed due to Request GROUP_COORDINATOR failed on brokers List(localhost:9092 (id: -1 rack: null))

and rest of the time it is showing the correct result.

I googled it but was not able to find the exact result of this error.Can someone tell me how to fix this error? Any help would be appreciated.

like image 970
Abhimanyu Avatar asked May 04 '17 10:05

Abhimanyu


1 Answers

Are you sure you can connect to localhost:9092?

I get this error whenever the url to the bootstrap server is wrong.

Try whatever other host and you will see the same error.

like image 105
Renato Avatar answered Oct 24 '22 14:10

Renato