Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 29, 2021 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1ambda/0fcec89a71a8f9785e48c60238703758 to your computer and use it in GitHub Desktop.
Save 1ambda/0fcec89a71a8f9785e48c60238703758 to your computer and use it in GitHub Desktop.
# 최초 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