Check broker metadata
List all API versions supported by the broker
kafka-broker-api-versions.sh --bootstrap-server kafka:9092
- tool
- kafka20 commands
More kafka commands
-
kafka-topics.sh --bootstrap-server kafka:9092 --listList all Kafka topics in the cluster
-
kafka-topics.sh --bootstrap-server kafka:9092 --create --topic <name> --partitions 3 --replication-factor 2Create topic with specific partition and replication settings
-
kafka-topics.sh --bootstrap-server kafka:9092 --describe --topic <name>Show partition count, replication, leaders and ISR
-
kafka-topics.sh --bootstrap-server kafka:9092 --delete --topic <name>Permanently delete a Kafka topic
-
kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic <name> --from-beginningRead all messages from a topic starting from offset 0