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

Was this helpful?

1 / 0

Leave a Reply 0

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


Cookie Consent with Real Cookie Banner