2011-08-19 17:36:23 +00:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
# log4j configuration used during build and unit tests
|
|
|
|
|
|
|
|
log4j.rootLogger=info,stdout
|
2015-05-07 06:14:20 +00:00
|
|
|
log4j.threshold=ALL
|
2011-08-19 17:36:23 +00:00
|
|
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
|
|
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
2015-06-24 00:26:11 +00:00
|
|
|
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} (%F:%M(%L)) - %m%n
|
2015-08-17 23:55:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# NameNode metrics logging.
|
|
|
|
# The default is to retain two namenode-metrics.log files up to 64MB each.
|
|
|
|
#
|
|
|
|
log4j.logger.NameNodeMetricsLog=INFO,NNMETRICSRFA
|
|
|
|
log4j.additivity.NameNodeMetricsLog=false
|
|
|
|
log4j.appender.NNMETRICSRFA=org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.NNMETRICSRFA.File=${hadoop.log.dir}/namenode-metrics.log
|
|
|
|
log4j.appender.NNMETRICSRFA.layout=org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.NNMETRICSRFA.layout.ConversionPattern=%d{ISO8601} %m%n
|
|
|
|
log4j.appender.NNMETRICSRFA.MaxBackupIndex=1
|
|
|
|
log4j.appender.NNMETRICSRFA.MaxFileSize=64MB
|
2015-09-15 18:48:29 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# DataNode metrics logging.
|
|
|
|
# The default is to retain two datanode-metrics.log files up to 64MB each.
|
|
|
|
#
|
|
|
|
log4j.logger.DataNodeMetricsLog=INFO,DNMETRICSRFA
|
|
|
|
log4j.additivity.DataNodeMetricsLog=false
|
|
|
|
log4j.appender.DNMETRICSRFA=org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.DNMETRICSRFA.File=${hadoop.log.dir}/datanode-metrics.log
|
|
|
|
log4j.appender.DNMETRICSRFA.layout=org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.DNMETRICSRFA.layout.ConversionPattern=%d{ISO8601} %m%n
|
|
|
|
log4j.appender.DNMETRICSRFA.MaxBackupIndex=1
|
|
|
|
log4j.appender.DNMETRICSRFA.MaxFileSize=64MB
|