Skip to content

Instantly share code, notes, and snippets.

View naveen09's full-sized avatar

Naveen naveen09

  • Hyderabad, INDIA
View GitHub Profile
@naveen09
naveen09 / kafka-cheat-sheet.md
Created April 19, 2019 13:03 — 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-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...