Hi, I had similar problems where new topics were assigned none, or some cases -1 leader. In my case, was due to a very busy ZK cluster. Once I removed load in the ZK cluster, I've restarted (rolling restart) kafka brokers and everything went back to normal. However I was worried about restarting them, I thought that if topics had no leader nor ISR the messages in there could be lost when restarting, but I haven't lost any message.
Try to have a look to the information stored inside ZK: for example check new topics appear there, leadership... On 13 July 2017 at 10:57, Qin MingHui(大数据中心/外包) <minghui...@sohu-inc.com> wrote: > Hi,I need some help about kafka. Kafka is a very nice software , and we > have been using it for a long time. But now ,I encountered a problem. > When I create a topic on kafka server cluster, the leader of every > partition is none . like this: > > > > > > The command is : /opt/apps_install/kafka_2.9.2-0.8.1/bin/kafka-topics.sh > --zookeeper 10.16.10.94:2181/kafka-0.8.1 --create --topic > meteor_hot_article3 --replica-assignment 4:7,5:8:2,6:9 > > > > The zookeeper server cluster is normal and no kafka server is down,everything > looks normal. > > > > Then I use this command : > /opt/apps_install/kafka_2.9.2-0.8.1/bin/kafka-topics.sh > --zookeeper 10.16.10.94:2181/kafka-0.8.1 --create --topic topicName > --partitions 10 --replication-factor 3 > > > > The leader is none too. I am desperate and I don’t know what to do ,so > please help me . > > > > My kafka version is 2.9.2-0.8.1. zookeeper version is 3.4.5. > > > -- News, jobs, product releases, events. Follow 360dialog on LinkedIn <https://www.linkedin.com/company/360dialog> and Twitter <https://twitter.com/360dialog>. Subscribe to our newsletter <http://www.360dialog.com/newsletter/>. *Alberto del Barrio*DevOps Engineer <http://www.360dialog.com?utm_campaign=email-signature&utm_content=-&utm_medium=email&utm_source=signature&utm_term=logo> *Contact 360dialog*www.360dialog.com <http://www.360dialog.com/?utm_campaign=email-signature&utm_content=-&utm_medium=email&utm_source=signature&utm_term=url> i...@360dialog.com +49-(0)30-6098-5953-0 360dialog GmbH, Saarbrücker Str. 36-38, 10405 Berlin, Germany Managing director: Roland Siebert Commercial register: Charlottenbug, HRB 144188 B VAT ID: DE815382679