OnCallReadyStart learning

kafka-get-offsets.sh: print the offsets of topic partitions

kafka-get-offsets.sh [options]

Options you will use

--bootstrap-server <String: server to connect to>
REQUIRED: the Kafka broker(s) to connect to, host:port[,host:port]. Give more than one: the first may be the broker that is down.
--topic <String>
the topic (or a regex).
--partitions <String>
comma-separated partition ids.
--time <Long|String>
-1 or latest (default, the end), -2 or earliest (first kept), -3 max-timestamp, or a timestamp in ms.

Examples

$ kafka-get-offsets.sh --bootstrap-server kafka-1:9092 --topic orders --time earliest

where each partition starts now

Taught in

Try kafka-get-offsets.sh in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.