Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 최초 10 줄만 출력합니다.
$ kafka-run-class kafka.tools.DumpLogSegments --files /var/lib/kafka/data/test-topic-0/00000000000000000000.index --print-data-log | head -n 10
Dumping /var/lib/kafka/data/test-topic-0/00000000000000000000.index
offset: 32 position: 17275
offset: 48 position: 33480
offset: 64 position: 49685
offset: 80 position: 65890
offset: 96 position: 82095
offset: 112 position: 98300
offset: 128 position: 114505
offset: 144 position: 130710
offset: 160 position: 146915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment