Explorer
Posts: 6
Registered: ‎07-04-2016
kafka 2.0.1 create topic failed

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 Me Too'd this topic