HBASE-6363 HBaseConfiguration can carry a main method that dumps XML output for debug purposes

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1364129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-07-21 17:23:28 +00:00
parent 4b07b3985d
commit c22888d6d8
1 changed files with 8 additions and 0 deletions

View File

@ -147,4 +147,12 @@ public class HBaseConfiguration extends Configuration {
}
return isShowConf;
}
/** For debugging. Dump configurations to system output as xml format.
* Master and RS configurations can also be dumped using
* http services. e.g. "curl http://master:60010/dump"
*/
public static void main(String[] args) throws Exception {
HBaseConfiguration.create().writeXml(System.out);
}
}