[
https://issues.apache.org/jira/browse/HBASE-11847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Dimiduk updated HBASE-11847:
---------------------------------
Attachment: HBASE-11847.00.patch
Attaching a sketch patch cut from a divergent branch.
Output looks like:
{noformat}
$ hbase hfile -Dhfile.block.cache.size=0 -h -f
hdfs:///apps/hbase/data/data/default/loadtest_d1/423921002c1ed3d8b0e7c5fb2aff22f8/test_cf/d57626442bd74f7b9158db78bed2f87e
2>/dev/null | grep -A1 fileOffset=8358240
blockType=DATA, onDiskSizeWithoutHeader=43295,
uncompressedSizeWithoutHeader=65610, prevBlockOffset=8315056, isUnpacked=true,
dataBeginsWith=\x00\x00\x00;\x00\x00\x00[\x00'e0e4118538e584b19bb819,
fileOffset=8358240
blockType=DATA, onDiskSizeWithoutHeader=42572,
uncompressedSizeWithoutHeader=65563, prevBlockOffset=8358240, isUnpacked=true,
dataBeginsWith=\x00\x00\x00<\x00\x00\x00\x84\x00'e0e7f0da081df1eba16c04,
fileOffset=8401568
{noformat}
> HFile tool should be able to print block headers
> ------------------------------------------------
>
> Key: HBASE-11847
> URL: https://issues.apache.org/jira/browse/HBASE-11847
> Project: HBase
> Issue Type: Improvement
> Components: HFile
> Reporter: Nick Dimiduk
> Priority: Minor
> Attachments: HBASE-11847.00.patch
>
>
> Printing the block index is helpful, but sometimes you want to see more info
> about the blocks themselves.
--
This message was sent by Atlassian JIRA
(v6.2#6252)