Skip to content

Instantly share code, notes, and snippets.

View Condla's full-sized avatar
🎯
Focusing

Stefan List Condla

🎯
Focusing
View GitHub Profile
@Condla
Condla / kafka-cheat-sheet.md
Last active July 18, 2018 08:51 — forked from ursuad/kafka-cheat-sheet.md
Quick command reference for Apache Kafka

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Describe a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic

Purge a topic

bin/kafka-configs.sh --zookeeper localhost:2181 --alter --entity-name mytopic --entity-type topics --config retention.ms=1000

... wait a minute ...