[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13428748#comment-13428748 ] Hudson commented on HBASE-6363: --- Integrated in HBase-0.94-security-on-Hadoop-23 #6 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/6/]) HBASE-6363 HBaseConfiguration can carry a main method that dumps XML output for debug purposes (Revision 1364131) Result = FAILURE stack : Files : * /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java 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 Fix For: 0.96.0, 0.94.1 Attachments: HBASE-6363.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13421664#comment-13421664 ] Hudson commented on HBASE-6363: --- Integrated in HBase-0.94-security #45 (See [https://builds.apache.org/job/HBase-0.94-security/45/]) HBASE-6363 HBaseConfiguration can carry a main method that dumps XML output for debug purposes (Revision 1364131) Result = FAILURE stack : Files : * /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java 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 Fix For: 0.96.0, 0.94.1 Attachments: HBASE-6363.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13419904#comment-13419904 ] Hudson commented on HBASE-6363: --- Integrated in HBase-TRUNK #3157 (See [https://builds.apache.org/job/HBase-TRUNK/3157/]) HBASE-6363 HBaseConfiguration can carry a main method that dumps XML output for debug purposes (Revision 1364129) Result = SUCCESS stack : Files : * /hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java 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 Fix For: 0.96.0, 0.94.1 Attachments: HBASE-6363.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13419905#comment-13419905 ] Hudson commented on HBASE-6363: --- Integrated in HBase-0.94 #350 (See [https://builds.apache.org/job/HBase-0.94/350/]) HBASE-6363 HBaseConfiguration can carry a main method that dumps XML output for debug purposes (Revision 1364131) Result = FAILURE stack : Files : * /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java 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 Fix For: 0.96.0, 0.94.1 Attachments: HBASE-6363.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13419973#comment-13419973 ] Hudson commented on HBASE-6363: --- Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #102 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/102/]) HBASE-6363 HBaseConfiguration can carry a main method that dumps XML output for debug purposes (Revision 1364129) Result = FAILURE stack : Files : * /hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java 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 Fix For: 0.96.0, 0.94.1 Attachments: HBASE-6363.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13418882#comment-13418882 ] Harsh J commented on HBASE-6363: Thanks again Shengsheng. The /dump servlet is more verbose than the simple XML given by /conf servlet. If its just config you need, /conf is where you need to go to, not /dump. But for the sake of debuggability, suggesting /dump in the javadoc does seem fine to do for HBase. I think the patch looks good. If needed, we can switch /dump with /conf (since we're discussing just configs, not env. info as well), but otherwise I think it does what the goal of this report was. Thanks again! 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.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13418900#comment-13418900 ] Shengsheng Huang commented on HBASE-6363: - Thanks very much for clarification Harsh. It seems /conf is only added into Hadoop since release 0.21 (HADOOP-6408). As we're using hadoop v1 it didn't work at our local cluster. We would consider adding HADOOP-6408 patch into our local hadoop branch. After all, servlet config dump would contain all the configuration changes in code. Anyway, do you think it worth a seperate servlet to dump configuration as xml only? Or reorganize the dump output into more consistent format to make it easier for automatic parsing? 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.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13418917#comment-13418917 ] Harsh J commented on HBASE-6363: Sorry, I didn't notice 1.x didn't have it! (I checked only against my 2.x installation, and CDH3 here seems to have had it backported at some point too). Instead of working around, I think we can rather backport it to a v1 future release, via: HADOOP-8567. 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.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13418940#comment-13418940 ] Shengsheng Huang commented on HBASE-6363: - Seems reasonable. I only got a little bit concern about package dependency, because some of our customers are very reluctant to upgrade their stable hadoop deployment. A standalone patch is good to have. 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.2.patch, 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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--namehadoop.security.group.mapping.ldap.search.attr.group.name/namevaluecn/value/property property!--Loaded from mapred-default.xml--namemapred.merge.recordsBeforeProgress/namevalue1/value/property property!--Loaded from mapred-site.xml--namemapred.job.tracker.http.address/namevaluec1514.hal.cloudera.com:56030/value/property property!--Loaded from hdfs-default.xml--namedfs.namenode.replication.min/namevalue1/value/property property!--Loaded from hbase-default.xml--namehbase.master.logcleaner.ttl/namevalue60/value/property property!--Loaded from mapred-default.xml--namemapred.compress.map.output/namevaluefalse/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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13415697#comment-13415697 ] stack commented on HBASE-6363: -- Make a patch Harsh? Maybe add documentation to your patch that lists LarsG's way of doing it and your min method? 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
[jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes
[ https://issues.apache.org/jira/browse/HBASE-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13410285#comment-13410285 ] Lars George commented on HBASE-6363: You could do the same using the HBase shell. Just type in {noformat} hbase(main):001:0 org.apache.hadoop.hbase.HBaseConfiguration.create.getProps.toString = {hbase.online.schema.update.enable=false, hbase.master.port=6, hbase.hstore.compaction.max=10, hbase.regionserver.port=60020, ipc.client.connect.max.retries.on.timeouts=45, hbase.zookeeper.dns.nameserver=default, hadoop.tmp.dir=/tmp/hadoop-${user.name}, hbase.rpc.engine=org.apache.hadoop.hbase.ipc.WritableRpcEngine, hbase.defaults.for.version.skip=false {noformat} 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 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