topic list in kafka code example
Example 1: kafka list topics
bin/kafka-topics.sh --list --zookeeper localhost:2181
Example 2: kafka create topic
#Kafka docker create topic
create-topics.sh --zookeeper : \
--topic \
--partitions \
--replication-factor