hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Dimiduk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11847) HFile tool should be able to print block headers
Date Tue, 09 Sep 2014 21:19:29 GMT

     [ 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.01.patch

Fix the patch to compile vs trunk (I think the existing patch works on 0.98). This becomes
very introspective when combined with the HFIleBlock.toString() improvements on HBASE-11331.

Here's what happens now when you try to specify both a file and a region:

$ ./bin/hbase hfile -f foo -r bar
2014-09-09 14:15:49,963 ERROR [main] hfile.HFilePrettyPrinter: Error parsing command-line
org.apache.commons.cli.AlreadySelectedException: The option 'r' was specified but an option
from this group has already been selected: 'f'
        at org.apache.commons.cli.OptionGroup.setSelected(OptionGroup.java:97)
        at org.apache.commons.cli.Parser.processOption(Parser.java:387)
        at org.apache.commons.cli.Parser.parse(Parser.java:199)
        at org.apache.commons.cli.Parser.parse(Parser.java:85)
        at org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.parseOptions(HFilePrettyPrinter.java:134)
        at org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.run(HFilePrettyPrinter.java:197)
        at org.apache.hadoop.hbase.io.hfile.HFile.main(HFile.java:805)

> 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
>             Fix For: 2.0.0, 0.98.7, 0.99.1
>         Attachments: HBASE-11847.00.patch, HBASE-11847.01.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

View raw message