Skip to content

Useful console commands

James Cancilla edited this page Aug 31, 2017 · 2 revisions

Display topic offsets:

bin/kafka-run-class.sh kafka.tools.GetOffsetShell --topic test1 --broker-list localhost:9091

output

<topic>:<offset_of_first_message>:<next_offset>