HBASE-4709 Hadoop metrics2 setup in test MiniDFSClusters spewing JMX errors
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1419296 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
078817462d
commit
f0f66f4ba9
|
@ -436,6 +436,14 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
|||
public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])
|
||||
throws Exception {
|
||||
createDirsAndSetProperties();
|
||||
|
||||
// Error level to skip some warnings specific to the minicluster. See HBASE-4709
|
||||
org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).
|
||||
setLevel(org.apache.log4j.Level.ERROR);
|
||||
org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).
|
||||
setLevel(org.apache.log4j.Level.ERROR);
|
||||
|
||||
|
||||
this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,
|
||||
true, null, null, hosts, null);
|
||||
|
||||
|
|
|
@ -61,3 +61,8 @@ log4j.appender.console.layout.ConversionPattern=%d %-5p [%t] %C{2}(%L): %m%n
|
|||
log4j.logger.org.apache.hadoop=WARN
|
||||
log4j.logger.org.apache.zookeeper=ERROR
|
||||
log4j.logger.org.apache.hadoop.hbase=DEBUG
|
||||
|
||||
#These two settings are workarounds against spurious logs from the minicluster.
|
||||
#See HBASE-4709
|
||||
log4j.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=ERROR
|
||||
log4j.org.apache.hadoop.metrics2.util.MBeans=ERROR
|
||||
|
|
Loading…
Reference in New Issue