Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F02F6D1AA for ; Fri, 20 Jul 2012 02:23:35 +0000 (UTC) Received: (qmail 92099 invoked by uid 500); 20 Jul 2012 02:23:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 92070 invoked by uid 500); 20 Jul 2012 02:23:35 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 92055 invoked by uid 99); 20 Jul 2012 02:23:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 02:23:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 6483A142856 for ; Fri, 20 Jul 2012 02:23:35 +0000 (UTC) Date: Fri, 20 Jul 2012 02:23:35 +0000 (UTC) From: "Harsh J (JIRA)" To: issues@hbase.apache.org Message-ID: <1141596101.80191.1342751015413.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1151761661.27764.1341921035736.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-6363) HBaseConfiguration can carry a main method that dumps XML output for debug purposes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-6363?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1341= 8882#comment-13418882 ]=20 Harsh J commented on HBASE-6363: -------------------------------- Thanks again Shengsheng. The /dump servlet is more verbose than the simple XML given by /conf servle= t. 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 s= eem fine to do for HBase. I think the patch looks good. If needed, we can switch /dump with /conf (si= nce 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! =20 > HBaseConfiguration can carry a main method that dumps XML output for debu= g 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 sim= ply loads itself and writes XML out to System.out, HBaseConfiguration can u= se the same kinda method. > That way we can do "hbase org.apache.hadoop.=E2=80=A6.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 administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira