Why is kafka not creating a topic? bootstrap-server is not a recognized option

前端 未结 1 2007
悲哀的现实
悲哀的现实 2020-12-30 02:09

I am new to Kafka and trying to create a new topic on my local machine.

I am following this link.

Here are the steps which i followed:

  1. Start

相关标签:
1条回答
  • 2020-12-30 02:20

    If you use version older than 2.2 you should use --zookeeper option and pass connection string to zookeeper

    Command would be something like that:

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

    0 讨论(0)
提交回复
热议问题