Reply
New Contributor
Posts: 1
Registered: ‎04-16-2019

kakfa leader not available I have added 1 more broker earlier kafka has 3 brokers ,

[ Edited ]

kakfa leader not available I have added 1 more broker earlier kafka has 3 brokers , producer is throwing an error ;

WARN clients.NetworkClient: Error while fetching metadata with correlation id 5493 : {amoll=LEADER_NOT_AVAILABLE}

 

I have checked advertised.host.name and I see kafka broker default group and kafka broker1 group there .

Kind Regards

Amol

Highlighted
Cloudera Employee
Posts: 115
Registered: ‎03-01-2016

Re: kakfa leader not available I have added 1 more broker earlier kafka has 3 brokers ,

The error message shows you don't have a valid leader for the partition you are accessing. In kafka, all read/writes should go through the leader of that partition.

 

You should make sure the topic/partitions have healthy leader first, run:

kafka-topics --describe  --zookeeper <zk_url, put /chroot if you have any> --topic <topic_name>

 

 

Announcements
New solutions