Some handy Kafka commands (that I keep forgetting)

List all topics

kafka-topics.sh --bootstrap-server localhost:9092 --list

Consume from a given topic from console

kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic nameOfYourTopic

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Cookie Consent with Real Cookie Banner