rpk
The command-line tool that ships with Redpanda for starting brokers and managing topics, consumer groups and schemas.
In more detail
rpk talks to any Kafka-compatible cluster over the Kafka protocol, so the same commands also work against Apache Kafka for most topic and group tasks. The course runs it inside the broker container with docker exec. Its main command groups are rpk topic, rpk group, rpk cluster and rpk registry.
Example
docker exec broker rpk topic listRelated terms
- Redpanda — A streaming data platform, written in C++, that speaks the Kafka protocol so Kafka clients and tools work against it unchanged.
- command-line interface — A program you control by typing commands as text in a terminal instead of clicking in a window.
- rpk topic create — An rpk command that creates one or more topics, optionally setting the partition count, replication factor and topic properties.
- 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.
- rpk group describe — An rpk command that shows a consumer group's state, members and, per partition, the committed offset, log end offset and lag.
Taught in
- Why A Log And Not A Queue — Apache Kafka & Event Streaming
- Starting A Broker And Reading Its Metadata — Apache Kafka & Event Streaming
- Topics, Partitions And Where A Record Lands — Apache Kafka & Event Streaming
- A Consumer In Python — Apache Kafka & Event Streaming