rpk topic describe
An rpk command that shows a topic's summary, its configuration with -c, or its partition table with -p.
In more detail
The partition table lists each partition's leader, leader epoch, replicas, log start offset and high watermark. The configuration view shows properties such as retention.ms and cleanup.policy and where each value came from.
Example
rpk topic describe m07l01-orders -pRelated terms
- rpk — The command-line tool that ships with Redpanda for starting brokers and managing topics, consumer groups and schemas.
- high watermark — The offset one past the last record that every in-sync replica has copied, which is as far as consumers are allowed to read.
- partition leader — The replica of a partition that handles all reads and writes for it; the other replicas copy from it.
- leader epoch — A counter per partition that goes up by one every time a new leader is elected.
- partition replica — One copy of a partition stored on one broker.
Taught in
- Starting A Broker And Reading Its Metadata — Apache Kafka & Event Streaming
- Topics, Partitions And Where A Record Lands — Apache Kafka & Event Streaming
- Retention: Time, Size And Why Data Stays — Apache Kafka & Event Streaming
- Acknowledgements: What Acks Means For Durability — Apache Kafka & Event Streaming
- Three Brokers: Replication And Leaders — Apache Kafka & Event Streaming
- Watching Lag And Sizing Partitions — Apache Kafka & Event Streaming