D:clusterkafka_2.12-1.1.0>.inwindowskafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test Error while executing topic command : Replication factor: 1 larger than available brokers: 0. [2019-01-18 10:04:11,703] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 1 larger than available brokers: 0. (kafka.admin.TopicCommand$)
错误原因: 一时疏忽没有启动kafak就开始创建topic
2.
错误原因是 kafak的配置文件中分区数不一致,需要修改 server.proerties文件汇总的num.partitions =1 这个配置