Error creating Kafka Topics- Replication factor larger than available brokers

前端 未结 15 1912
时光取名叫无心
时光取名叫无心 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:12

    If I were you I would try this code:

    bin/kafka-topics.sh --create --zookeeper localhost:2181/kafka --replication-factor 1 --partitions 1 --topic test

    If you are using a cluster where zookeeper be distributed in 3 nodes you should substitue localhost:2181/kafka for direccion1:2181,direction2:2181,direction3:2181/kafka

提交回复
热议问题