./bin/kafka-run-class.sh kafka.tools.GetOffsetShell \
--broker-list :9092 \
--topic t1
// topicName:partitionID:offset
t1:0:0
GetOffsetShell Utility
kafka.tools.GetOffsetShell
is a standalone application that is used to get offsets of the partitions of a topic.
GetOffsetShell
can be executed using kafka-run-class
shell script.
Option | Description |
---|---|
|
|
|
|
|
|
|
Executing Standalone Application — main
Method
main(args: Array[String]): Unit
main
is the entry point of the GetOffsetShell standalone application when launched on command line (e.g. from bin/kafka-configs.sh
).
Internally, main
…FIXME