Skip to content

kafka-dump-log Tool utility can dump log segments of a topic (incl. cluster metadata) to the console (e.g., for debugging a seemingly corrupt log segment). has got two new flags: --cluster-metadata-decoder, and --skip-record-metadata.

./bin/ \
  --cluster-metadata-decoder \
  --skip-record-metadata \
  --files /tmp/kraft-controller-logs/__cluster_metadata-0/00000000000000000000.log,/tmp/kraft-controller-logs/__cluster_metadata-0/00000000000000000000.index


--cluster-metadata-decoder flag tells the DumpLogSegments tool to decode the records as cluster metadata records.


--skip-record-metadata flag will skip printing metadata for each record. However, metadata for each record batch will still be printed when this flag is present.