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

Jonathan Hsieh commented on HBASE-6363:
---------------------------------------

I actually like the idea -- If it is the same method that dumps data out as 
http://<hmaster>:xxx/dump it also dumps out the file the different settings 
come from.  

{code}
<property><!--Loaded from 
core-default.xml--><name>hadoop.security.group.mapping.ldap.search.attr.group.name</name><value>cn</value></property>
<property><!--Loaded from 
mapred-default.xml--><name>mapred.merge.recordsBeforeProgress</name><value>10000</value></property>
<property><!--Loaded from 
mapred-site.xml--><name>mapred.job.tracker.http.address</name><value>c1514.hal.cloudera.com:56030</value></property>
<property><!--Loaded from 
hdfs-default.xml--><name>dfs.namenode.replication.min</name><value>1</value></property>
<property><!--Loaded from 
hbase-default.xml--><name>hbase.master.logcleaner.ttl</name><value>600000</value></property>
<property><!--Loaded from 
mapred-default.xml--><name>mapred.compress.map.output</name><value>false</value></property>
...
{code}
                
> 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
>
> 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


Reply via email to