Error creating Kafka Topics- Replication factor larger than available brokers

前端 未结 15 1982
时光取名叫无心
时光取名叫无心 2020-12-30 18:30

I am trying to create topics in Kafka by following the guide on Apache Kafka website through command line. While running the command:

bin/kafka-topics.sh --c         


        
15条回答
  •  自闭症患者
    2020-12-30 19:13

    I have had the same problem.I solve the problem.I think the reason for this is because there is no background start-up. so,we neet start-up background

    bin/kafka-server-start.sh config/server.properties &
    bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test &
    

提交回复
热议问题