Apache Kafka 4 · Topics

Create a topic

Create a topic with three partitions.

bin/kafka-topics.sh --create --topic orders --bootstrap-server localhost:9092 --partitions 3 --replication-factor 1

Official Apache Kafka 4 documentation

More topics commands

All topics commands · Apache Kafka 4 cheatsheet

Was this page helpful?