Skip to content

Instantly share code, notes, and snippets.

@luckykurhe
luckykurhe / kafka-cheat-sheet.md
Created March 2, 2021 15:10 — 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 ...

@luckykurhe
luckykurhe / 0.boomerang_debug_logs.txt
Last active May 4, 2016 11:13
boomerang debug logs
boomerang.rt: [debug] init RT
boomerang.rt: [debug] Read from cookie r=http://dev.com:8080/project/
ul=1462345450861
hd=1462345450872
s=1462345450861
boomerang.rt: [debug] http://dev.com:8080/project/ =?=
boomerang.rt: [debug] 1462345450861 <? NaN
boomerang.rt: [debug] undefined =?= http://dev.com:8080/project/
boomerang.rt: [debug] Setting cookie (timer=undefined)
boomerang.angular: [debug] 1: Startup