Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> LeaderNotAvailable Exception


Copy link to this message
-
RE: LeaderNotAvailable Exception
How to make sure the code is the latest? I ran these commands. Created the
ticket KAFKA-876 for this issue. Thanks a lot

PS C:\Projects\Kafka\kafka> git branch
* 0.8
  trunk
PS C:\Projects\Kafka\kafka> git pull
Already up-to-date.
PS C:\Projects\Kafka\kafka>

=========================Broker Log=============================

Set JMX_PORT to default value : 9999
C:\Projects\Kafka\kafka\bin\..
log4j:ERROR Failed to rename [server.log] to [server.log.2013-04-25-09].
[2013-04-25 10:08:49,531] INFO Verifying properties
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property socket.send.buffer.bytes is
overridden to 1048576 (kafka.utils.VerifiablePropert
ies)
[2013-04-25 10:08:49,578] INFO Property socket.request.max.bytes is
overridden to 104857600 (kafka.utils.VerifiablePrope
rties)
[2013-04-25 10:08:49,578] INFO Property log.dir is overridden to
/tmp/kafka-logs (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property log.cleanup.interval.mins is
overridden to 1 (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property log.retention.hours is overridden to
168 (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property num.io.threads is overridden to 2
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property broker.id is overridden to 0
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] WARN Property kafka.csv.metrics.reporter.enabled
is not valid (kafka.utils.VerifiablePropertie
s)
[2013-04-25 10:08:49,578] INFO Property port is overridden to 9092
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property log.flush.interval.messages is
overridden to 10000 (kafka.utils.VerifiableProper
ties)
[2013-04-25 10:08:49,578] INFO Property zk.connection.timeout.ms is
overridden to 1000000 (kafka.utils.VerifiablePropert
ies)
[2013-04-25 10:08:49,578] WARN Property kafka.metrics.reporters is not valid
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] WARN Property kafka.csv.metrics.dir is not valid
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property log.flush.interval.ms is overridden
to 1000 (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] WARN Property kafka.metrics.polling.interval.secs
is not valid (kafka.utils.VerifiableProperti
es)
[2013-04-25 10:08:49,578] INFO Property num.network.threads is overridden to
2 (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property socket.receive.buffer.bytes is
overridden to 1048576 (kafka.utils.VerifiableProp
erties)
[2013-04-25 10:08:49,578] INFO Property log.segment.bytes is overridden to
536870912 (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,578] INFO Property zk.connect is overridden to
localhost:2181 (kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,594] INFO Property num.partitions is overridden to 1
(kafka.utils.VerifiableProperties)
[2013-04-25 10:08:49,609] INFO [Kafka Server 0], starting
(kafka.server.KafkaServer)
[2013-04-25 10:08:49,625] INFO [Log Manager on Broker 0] Log directory
'C:\tmp\kafka-logs' not found, creating it. (kafk
a.log.LogManager)
[2013-04-25 10:08:49,625] INFO [Log Manager on Broker 0] Starting log
cleaner every 60000 ms (kafka.log.LogManager)
[2013-04-25 10:08:49,640] INFO [Log Manager on Broker 0] Starting log
flusher every 3000 ms with the following overrides
 Map() (kafka.log.LogManager)
[2013-04-25 10:08:49,656] INFO Awaiting socket connections on 0.0.0.0:9092.
(kafka.network.Acceptor)
[2013-04-25 10:08:49,656] INFO [Socket Server on Broker 0], started
(kafka.network.SocketServer)
[2013-04-25 10:08:49,672] INFO connecting to ZK: localhost:2181
(kafka.server.KafkaZooKeeper)
[2013-04-25 10:08:49,672] INFO Starting ZkClient event thread.
(org.I0Itec.zkclient.ZkEventThread)
[2013-04-25 10:08:49,672] INFO Client
environment:zookeeper.version=3.3.3-1203054, built on 11/17/2011 05:47 GMT
(org.ap
ache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,672] INFO Client
environment:host.name=YIYIN-MAIN.redmond.corp.microsoft.com
(org.apache.zookeeper.
ZooKeeper)
[2013-04-25 10:08:49,672] INFO Client environment:java.version=1.7.0_21
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,672] INFO Client environment:java.vendor=Oracle
Corporation (org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,672] INFO Client environment:java.home=C:\Program Files
(x86)\Java\jdk1.7.0_21\jre (org.apache.zook
eeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client
environment:java.io.tmpdir=C:\Users\yiyin\AppData\Local\Temp\
(org.apache.zookeepe
r.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client environment:java.compiler=<NA>
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client environment:os.name=Windows 8
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client environment:os.arch=x86
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client environment:os.version=6.2
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client environment:user.name=yiyin
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client environment:user.home=C:\Users\yiyin
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Client
environment:user.dir=C:\Projects\Kafka\kafka\bin
(org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,687] INFO Initiating client connection,
connectString=localhost:2181 sessionTimeout=6000 watcher=or
g.I0Itec.zkclient.ZkClient@16e73e3 (org.apache.zookeeper.ZooKeeper)
[2013-04-25 10:08:49,703] INFO Opening socket connection to server
localhost/127.0.0.1:2181 (org.apache.zookeeper.Client
Cnxn)
[2013-04-25 10:08:49,703] INFO Socket connection established to
localhost/127.0.0.1:2181, initiating session (org.apache
.zookeeper.ClientCnxn)
[2013-04-25 10:08:49,781] INFO Session establishment complete on server
localhost/127.0.0.1:2181, sessionid = 0x13e422b2
f620000, negotiated timeout = 6000 (org.apache.zookeeper.ClientCnxn)
[2013-04-25 10:08:49,781] INFO zookeeper state changed (SyncConnec