Welcome to the Cloudera Community

Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Who agreed with this topic

kafka 2.0.1 create topic failed

avatar

I am trying to test kafka 2.0.2
cdh 5.7
kafka host ~]$ kafka-topics --zookeeper <zookeeper-host>:2181 --create --topic first --partitions 1 --replication-factor 1
Error while executing topic command : replication factor: 1 larger than available brokers: 0
[2016-10-11 12:42:59,436] ERROR kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0
at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:77)
at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:244)
at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:107)
at kafka.admin.TopicCommand$.main(TopicCommand.scala:60)
at kafka.admin.TopicCommand.main(TopicCommand.scala)
(kafka.admin.TopicCommand$)

Who agreed with this topic