From ccf1f17d78f8fb4fd5dbcd5bd6369bee84032914 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Fri, 3 Mar 2017 12:31:00 -0800 Subject: [PATCH] HBASE-17722 Metrics subsystem stop/start messages add a lot of useless bulk to operational logging Conflicts: hbase-spark/src/test/resources/log4j.properties --- conf/log4j.properties | 5 +++++ .../src/main/resources/log4j.properties | 5 +++++ .../src/main/resources/log4j.properties | 5 +++++ hbase-client/src/test/resources/log4j.properties | 8 +++++--- hbase-common/src/test/resources/log4j.properties | 8 +++++--- hbase-examples/src/test/resources/log4j.properties | 8 +++++--- hbase-prefix-tree/src/test/resources/log4j.properties | 8 +++++--- hbase-procedure/src/test/resources/log4j.properties | 8 +++++--- hbase-rest/src/test/resources/log4j.properties | 8 +++++--- hbase-server/src/test/resources/log4j.properties | 8 +++++--- hbase-shell/src/test/resources/log4j.properties | 8 +++++--- 11 files changed, 55 insertions(+), 24 deletions(-) diff --git a/conf/log4j.properties b/conf/log4j.properties index 61f49d82f02..17ba23afe83 100644 --- a/conf/log4j.properties +++ b/conf/log4j.properties @@ -116,3 +116,8 @@ log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO # Add "EventCounter" to rootlogger if you want to use this # Uncomment the line below to add EventCounter information # log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter + +# Prevent metrics subsystem start/stop messages (HBASE-17722) +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN diff --git a/hbase-archetypes/hbase-client-project/src/main/resources/log4j.properties b/hbase-archetypes/hbase-client-project/src/main/resources/log4j.properties index 2475ea0ae16..11f2b75880a 100644 --- a/hbase-archetypes/hbase-client-project/src/main/resources/log4j.properties +++ b/hbase-archetypes/hbase-client-project/src/main/resources/log4j.properties @@ -114,3 +114,8 @@ log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO # Add "EventCounter" to rootlogger if you want to use this # Uncomment the line below to add EventCounter information # log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter + +# Prevent metrics subsystem start/stop messages (HBASE-17722) +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN diff --git a/hbase-archetypes/hbase-shaded-client-project/src/main/resources/log4j.properties b/hbase-archetypes/hbase-shaded-client-project/src/main/resources/log4j.properties index 2475ea0ae16..11f2b75880a 100644 --- a/hbase-archetypes/hbase-shaded-client-project/src/main/resources/log4j.properties +++ b/hbase-archetypes/hbase-shaded-client-project/src/main/resources/log4j.properties @@ -114,3 +114,8 @@ log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO # Add "EventCounter" to rootlogger if you want to use this # Uncomment the line below to add EventCounter information # log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter + +# Prevent metrics subsystem start/stop messages (HBASE-17722) +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN diff --git a/hbase-client/src/test/resources/log4j.properties b/hbase-client/src/test/resources/log4j.properties index 56f8f92fecb..405435e7579 100644 --- a/hbase-client/src/test/resources/log4j.properties +++ b/hbase-client/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=TRACE diff --git a/hbase-common/src/test/resources/log4j.properties b/hbase-common/src/test/resources/log4j.properties index 56f8f92fecb..405435e7579 100644 --- a/hbase-common/src/test/resources/log4j.properties +++ b/hbase-common/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=TRACE diff --git a/hbase-examples/src/test/resources/log4j.properties b/hbase-examples/src/test/resources/log4j.properties index 4eeeb2c2dee..c322699ced2 100644 --- a/hbase-examples/src/test/resources/log4j.properties +++ b/hbase-examples/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=TRACE diff --git a/hbase-prefix-tree/src/test/resources/log4j.properties b/hbase-prefix-tree/src/test/resources/log4j.properties index 4eeeb2c2dee..c322699ced2 100644 --- a/hbase-prefix-tree/src/test/resources/log4j.properties +++ b/hbase-prefix-tree/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=TRACE diff --git a/hbase-procedure/src/test/resources/log4j.properties b/hbase-procedure/src/test/resources/log4j.properties index 4eeeb2c2dee..c322699ced2 100644 --- a/hbase-procedure/src/test/resources/log4j.properties +++ b/hbase-procedure/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=TRACE diff --git a/hbase-rest/src/test/resources/log4j.properties b/hbase-rest/src/test/resources/log4j.properties index 56f8f92fecb..405435e7579 100644 --- a/hbase-rest/src/test/resources/log4j.properties +++ b/hbase-rest/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=TRACE diff --git a/hbase-server/src/test/resources/log4j.properties b/hbase-server/src/test/resources/log4j.properties index 56f8f92fecb..405435e7579 100644 --- a/hbase-server/src/test/resources/log4j.properties +++ b/hbase-server/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=TRACE diff --git a/hbase-shell/src/test/resources/log4j.properties b/hbase-shell/src/test/resources/log4j.properties index 4eeeb2c2dee..c322699ced2 100644 --- a/hbase-shell/src/test/resources/log4j.properties +++ b/hbase-shell/src/test/resources/log4j.properties @@ -58,9 +58,11 @@ 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. +#These 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 +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN +log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN +log4j.logger.org.apache.hadoop.metrics2.util.MBeans=WARN # Enable this to get detailed connection error/retry logging. # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=TRACE