From e1842ce67871d3e55f2931806486bf34e31e83fd Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Thu, 3 Sep 2015 11:14:47 -0700 Subject: [PATCH] HDFS-9009. Send metrics logs to NullAppender by default. (Arpit Agarwal) --- .../hadoop-common/src/main/conf/log4j.properties | 3 ++- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/conf/log4j.properties b/hadoop-common-project/hadoop-common/src/main/conf/log4j.properties index 1012e201e2d..c26fed4e9ba 100644 --- a/hadoop-common-project/hadoop-common/src/main/conf/log4j.properties +++ b/hadoop-common-project/hadoop-common/src/main/conf/log4j.properties @@ -152,7 +152,8 @@ log4j.appender.RFAAUDIT.MaxBackupIndex=${hdfs.audit.log.maxbackupindex} # NameNode metrics logging. # The default is to retain two namenode-metrics.log files up to 64MB each. # -log4j.logger.NameNodeMetricsLog=INFO,NNMETRICSRFA +namenode.metrics.logger=INFO,NullAppender +log4j.logger.NameNodeMetricsLog=${namenode.metrics.logger} log4j.additivity.NameNodeMetricsLog=false log4j.appender.NNMETRICSRFA=org.apache.log4j.RollingFileAppender log4j.appender.NNMETRICSRFA.File=${hadoop.log.dir}/namenode-metrics.log diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 28e94d37586..c3e8ad2b7b1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -943,6 +943,8 @@ Release 2.8.0 - UNRELEASED HDFS-8885. ByteRangeInputStream used in webhdfs does not override available(). (Shradha Revankar via aajisaka) + HDFS-9009. Send metrics logs to NullAppender by default. (Arpit Agarwal) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES