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:
parent
4b07b3985d
commit
c22888d6d8
|
@ -147,4 +147,12 @@ public class HBaseConfiguration extends Configuration {
|
||||||
}
|
}
|
||||||
return isShowConf;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue