kafka topic description code example
Example 1: kafkacat topic info
kafkacat -b localhost:29092 -t "new_topic" -L
Example 2: kafka create topic
$ bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
kafkacat -b localhost:29092 -t "new_topic" -L
$ bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092