blob: 0be7ebf2fb80ed7884e41ad9a249639513c4e333 [file] [log] [blame]
Till Westmann276bbc22013-06-05 18:56:27 -07001#/*
2# Copyright 2009-2013 by The Regents of the University of California
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# you may obtain a copy of the License from
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#*/
buyingyi7f356c12012-10-07 00:23:17 +000015# Define some default values that can be overridden by system properties
16hadoop.root.logger=FATAL,console
17hadoop.log.dir=.
18hadoop.log.file=hadoop.log
19
20# Define the root logger to the system property "hadoop.root.logger".
21log4j.rootLogger=${hadoop.root.logger}, EventCounter
22
23# Logging Threshold
24log4j.threshhold=FATAL
25
26#
27# Daily Rolling File Appender
28#
29
30log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
31log4j.appender.DRFA.File=${hadoop.log.dir}/${hadoop.log.file}
32
33# Rollver at midnight
34log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
35
36# 30-day backup
37#log4j.appender.DRFA.MaxBackupIndex=30
38log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
39
40# Pattern format: Date LogLevel LoggerName LogMessage
41log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
42# Debugging Pattern format
43#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
44
45
46#
47# console
48# Add "console" to rootlogger above if you want to use this
49#
50
51log4j.appender.console=org.apache.log4j.ConsoleAppender
52log4j.appender.console.target=System.err
53log4j.appender.console.layout=org.apache.log4j.PatternLayout
54log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
55
56#
57# TaskLog Appender
58#
59
60#Default values
61hadoop.tasklog.taskid=null
62hadoop.tasklog.noKeepSplits=4
63hadoop.tasklog.totalLogFileSize=100
64hadoop.tasklog.purgeLogSplits=true
65hadoop.tasklog.logsRetainHours=12
66
67log4j.appender.TLA=org.apache.hadoop.mapred.TaskLogAppender
68log4j.appender.TLA.taskId=${hadoop.tasklog.taskid}
69log4j.appender.TLA.totalLogFileSize=${hadoop.tasklog.totalLogFileSize}
70
71log4j.appender.TLA.layout=org.apache.log4j.PatternLayout
72log4j.appender.TLA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
73
74#
75# Rolling File Appender
76#
77
78#log4j.appender.RFA=org.apache.log4j.RollingFileAppender
79#log4j.appender.RFA.File=${hadoop.log.dir}/${hadoop.log.file}
80
81# Logfile size and and 30-day backups
82#log4j.appender.RFA.MaxFileSize=1MB
83#log4j.appender.RFA.MaxBackupIndex=30
84
85#log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
86#log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} - %m%n
87#log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
88
89#
90# FSNamesystem Audit logging
91# All audit events are logged at INFO level
92#
93log4j.logger.org.apache.hadoop.fs.FSNamesystem.audit=WARN
94
95# Custom Logging levels
96
97#log4j.logger.org.apache.hadoop.mapred.JobTracker=DEBUG
98#log4j.logger.org.apache.hadoop.mapred.TaskTracker=DEBUG
99#log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
100
101# Jets3t library
102log4j.logger.org.jets3t.service.impl.rest.httpclient.RestS3Service=ERROR
103
104#
105# Event Counter Appender
106# Sends counts of logging messages at different severity levels to Hadoop Metrics.
107#
108log4j.appender.EventCounter=org.apache.hadoop.metrics.jvm.EventCounter