Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

kafka + what could be the reasons for kafka broker isn't the leader for topic partition

hi all,

we have HDP cluster - 2.6.4 with ambari 2.6.1 version

we have 3 kafka brokers with version 10.1

we saw in the /var/log/kafka/server.log many errors messages as :

in this example we have 6601 errors lines about - This server is not the leader for that topic-partition

 grep "This server is not the leader for that topic-partition" server.log | wc -l



[2019-01-06 14:56:53,312] ERROR [ReplicaFetcherThread-0-1011], Error for partition [topic1-example,34] to broker 1011:org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)


@ Michael Bronson

Kafka requires the machine's hostname to be resolvable to connect back to itself. If you look under the config files and open up the you will see this line but most appropriate have localhost because in the event that the IP changes Kafka will still work seamlessly or 

Make sure this IP matches your current IP, you can check for your IP here.

@Geoffrey - yes all hosts and IP's have resolving

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.