kafka show topics code example
Example 1: kafka list topics
bin/kafka-topics.sh --list --zookeeper localhost:2181
Example 2: kafka-topics.sh --bootstrap-server multi server
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --from-beginning --topic my-replicated-topic