--num
An rpk topic consume flag that stops the command after it has read the given number of records.
In more detail
Without it, rpk topic consume keeps waiting for new records forever. The course uses it so every consume command exits cleanly with predictable output.
Example
rpk topic consume events -o 3 --num 2Related terms
- rpk topic consume — An rpk command that reads records from a topic and prints them, optionally from a chosen offset and in a chosen format.
Taught in
- The Error Storm That Fixes Itself — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Forty Minutes To Count Again — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Setting That Came Back — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Forty Minutes To Start — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Controllers At Once — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Offsets: Position, Not Acknowledgement — Apache Kafka & Event Streaming
- Keys And Ordering Per Partition — Apache Kafka & Event Streaming
- The Transactional Outbox — Apache Kafka & Event Streaming