consume kafka topic command code example
Example 1: kafka create topic
$ bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
Example 2: kafka create topic
#Kafka docker create topic
create-topics.sh --zookeeper : \
--topic \
--partitions \
--replication-factor