Apache Kafka 4 · Producing and consuming
Read messages from the start
Read a topic from the earliest offset.
bin/kafka-console-consumer.sh --topic orders --from-beginning --bootstrap-server localhost:9092
Official Apache Kafka 4 documentation
More producing and consuming commands
- Send messages from the terminal
- Send keyed messages
- Show keys and timestamps
- Consume as part of a group
All producing and consuming commands · Apache Kafka 4 cheatsheet