Console Producer Throwing LeaderNotAvailableException Despite Existing Leader for Partition

2015-02-08 Thread Alex Melville
Howdy all, I recently upgraded to Kafka 0.8.2.0 and am trying to verify that everything still works as expected. I spin up two brokers, one zk instance, and then create a topic using kafka-topics.sh --create --zookeeper ad-0104:2181 --topic deleteme --partitions 2 --replication-factor 1 Then I

Re: Console Producer Throwing LeaderNotAvailableException Despite Existing Leader for Partition

2015-02-08 Thread tao xiao
Alex, I got similar error before due to incorrect network binding of my laptop's wireless interface. You can try with setting advertised.host.name=kafka's server hostname in the server.properties and run it again. On Sun, Feb 8, 2015 at 8:38 AM, Alex Melville amelvi...@g.hmc.edu wrote: Howdy

Re: Console Producer Throwing LeaderNotAvailableException Despite Existing Leader for Partition

2015-02-08 Thread Alex Melville
Thanks Tao, That fixed the problem. Console producer now correctly pushes to the topic and console consumer can read the topic data. -Alex On Sun, Feb 8, 2015 at 1:47 AM, tao xiao xiaotao...@gmail.com wrote: Alex, I got similar error before due to incorrect network binding of my laptop's