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
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