skip.link.title

Kafka Cheat Sheet

This page contains a list of commonly used commands that I use working with Kafka.

How to list kafka topics?

kafka-topics --list --bootstrap-server localhost:9092

How to create kafka topic?

kafka-topics --create --topic test --replication-factor 1 --partitions 2  --bootstrap-server localhost:9092

How to describe kafka topic?

kafka-topics --describe --topic test --bootstrap-server localhost:9092
top.title