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?

0 / 0

Cookie Consent with Real Cookie Banner