hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
Date Thu, 19 Jul 2012 13:17:35 GMT

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

Harsh J commented on HBASE-6363:
--------------------------------

Hi Shengsheng, thanks much for the patch!

The getProps is a protected method in 2.x hadoop, so not good to rely on that. It would not
be a good solution. I think the main suffices, so the patch should just add in the main method.
Ruby can use that as well, so we're good.

P.p.s. Since HBase uses the Hadoop HTTP servlets it has a /conf for service config dump already.
                
> HBaseConfiguration can carry a main method that dumps XML output for debug purposes
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-6363
>                 URL: https://issues.apache.org/jira/browse/HBASE-6363
>             Project: HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.94.0
>            Reporter: Harsh J
>            Priority: Trivial
>              Labels: conf, newbie, noob
>         Attachments: HBASE-6363.patch
>
>
> Just like the Configuration class carries a main() method in it, that simply loads itself
and writes XML out to System.out, HBaseConfiguration can use the same kinda method.
> That way we can do "hbase org.apache.hadoop.….HBaseConfiguration" to get an Xml dump
of things HBaseConfiguration has properly loaded. Nifty in checking app classpaths sometimes.

--
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

       

Mime
View raw message