Kafka, mail # user - Re: LeaderNotAvailable Exception - 2013-01-24, 04:50
 Search Hadoop and all its subprojects:

Switch to Threaded View
Copy link to this message
-
Re: LeaderNotAvailable Exception
Hi Neha,

On zookeeper console it is appearing only once. But in Kafka - server
console I am getting the following exception continuously when ever
application tries to send some request.

kafka.common.LeaderNotAvailableException: Leader not local for topic test2
partition 0 on broker 0
        at
kafka.server.ReplicaManager.getLeaderReplicaIfLocal(ReplicaManager.scala:168)
        at
kafka.server.KafkaApis$$anonfun$appendToLocalLog$2.apply(KafkaApis.scala:271)
        at
kafka.server.KafkaApis$$anonfun$appendToLocalLog$2.apply(KafkaApis.scala:266)
        at
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
        at
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
        at scala.collection.immutable.Map$Map1.foreach(Map.scala:105)

Is this related to zookeeper or kafka? I am trying to electing leader
manually but I am not able to do it.

Any basic thing I am missing?

Thanks
Prasanna
From: Neha Narkhede
Sent: Thursday, January 24, 2013 10:10 AM
To: [EMAIL PROTECTED]
Subject: Re: LeaderNotAvailable Exception

Prasanna,

This log message is expected to appear once. Do you see it more than once
in your logs ?

Thanks,
Neha
On Wed, Jan 23, 2013 at 8:38 PM, Prasanna Kumar Jalakam <
[EMAIL PROTECTED]> wrote:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB