[ 
https://issues.apache.org/jira/browse/HBASE-3929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129088#comment-13129088
 ] 

Matteo Bertozzi commented on HBASE-3929:
----------------------------------------

Currently HFilePrettyPrinter raise a couple of exceptions if the HFile is 
Empty, just because it doesn't check if seekTo() returns true or false, and the 
first call after seekTo() is a scanner.getKeyValue() so you get a NPE...

I've added a v2 patch with the pkv rename, count == 0 handled, and seekTo 
checked to fix the NPE.
                
> Add option to HFile tool to produce basic stats
> -----------------------------------------------
>
>                 Key: HBASE-3929
>                 URL: https://issues.apache.org/jira/browse/HBASE-3929
>             Project: HBase
>          Issue Type: New Feature
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: 0.94.0
>
>         Attachments: HBASE-3929-v2.patch, hbase-3929-draft.patch, 
> hbase-3929-draft.txt
>
>
> In looking at HBASE-3421 I wrote a small tool to scan an HFile and produce 
> some basic statistics about it:
> - min/mean/max key size, value size (uncompressed)
> - min/mean/max number of columns per row (uncompressed)
> - min/mean/max number of bytes per row (uncompressed)
> - the key of the largest row

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to