get topics list kafka code example Example: kafka list topics bin/kafka-topics.sh --list --zookeeper localhost:2181