Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 95 lines (71 sloc) 2.815 kb
771791c @cutting HADOOP-279. Provide defaults for system properties used in log4j config...
cutting authored
1 # Define some default values that can be overridden by system properties
07c853e @cutting HADOOP-292. Fix client-side logging to go to standard error rather than...
cutting authored
2 hadoop.root.logger=INFO,console
771791c @cutting HADOOP-279. Provide defaults for system properties used in log4j config...
cutting authored
3 hadoop.log.dir=.
4 hadoop.log.file=hadoop.log
5
6 # Define the root logger to the system property "hadoop.root.logger".
71613c7 @cutting HADOOP-1562. Add JVM metrics. Contributed by David Bowen.
cutting authored
7 log4j.rootLogger=${hadoop.root.logger}, EventCounter
bec47f6 @cutting HADOOP-211. Switch logging use the Jakarta Commons logging API, configu...
cutting authored
8
9 # Logging Threshold
10 log4j.threshhold=ALL
11
12 #
13 # Daily Rolling File Appender
14 #
15
16 log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
17 log4j.appender.DRFA.File=${hadoop.log.dir}/${hadoop.log.file}
18
19 # Rollver at midnight
20 log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
21
22 # 30-day backup
23 #log4j.appender.DRFA.MaxBackupIndex=30
24 log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
25
26 # Pattern format: Date LogLevel LoggerName LogMessage
fa8f831 @cutting HADOOP-274. Change applications to log to standard output rather than t...
cutting authored
27 log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
28 # Debugging Pattern format
bec47f6 @cutting HADOOP-211. Switch logging use the Jakarta Commons logging API, configu...
cutting authored
29 #log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
30
31
32 #
07c853e @cutting HADOOP-292. Fix client-side logging to go to standard error rather than...
cutting authored
33 # console
34 # Add "console" to rootlogger above if you want to use this
bec47f6 @cutting HADOOP-211. Switch logging use the Jakarta Commons logging API, configu...
cutting authored
35 #
36
07c853e @cutting HADOOP-292. Fix client-side logging to go to standard error rather than...
cutting authored
37 log4j.appender.console=org.apache.log4j.ConsoleAppender
38 log4j.appender.console.target=System.err
39 log4j.appender.console.layout=org.apache.log4j.PatternLayout
40 log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
bec47f6 @cutting HADOOP-211. Switch logging use the Jakarta Commons logging API, configu...
cutting authored
41
42 #
54a2929 @cutting HADOOP-1000. Fix so that log messages in task subprocesses are not writ...
cutting authored
43 # TaskLog Appender
44 #
45
46 #Default values
47 hadoop.tasklog.taskid=null
48 hadoop.tasklog.noKeepSplits=4
49 hadoop.tasklog.totalLogFileSize=100
50 hadoop.tasklog.purgeLogSplits=true
51 hadoop.tasklog.logsRetainHours=12
52
53 log4j.appender.TLA=org.apache.hadoop.mapred.TaskLogAppender
54 log4j.appender.TLA.taskId=${hadoop.tasklog.taskid}
55 log4j.appender.TLA.totalLogFileSize=${hadoop.tasklog.totalLogFileSize}
56
57 log4j.appender.TLA.layout=org.apache.log4j.PatternLayout
58 log4j.appender.TLA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
59
60 #
bec47f6 @cutting HADOOP-211. Switch logging use the Jakarta Commons logging API, configu...
cutting authored
61 # Rolling File Appender
62 #
63
64 #log4j.appender.RFA=org.apache.log4j.RollingFileAppender
65 #log4j.appender.RFA.File=${hadoop.log.dir}/${hadoop.log.file}
66
67 # Logfile size and and 30-day backups
68 #log4j.appender.RFA.MaxFileSize=1MB
69 #log4j.appender.RFA.MaxBackupIndex=30
70
71 #log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
72 #log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} - %m%n
73 #log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
74
99c9385 @cdouglas HADOOP-3336. Direct a subset of annotated FSNamesystem calls for audit l...
cdouglas authored
75 #
76 # FSNamesystem Audit logging
77 # All audit events are logged at INFO level
78 #
79 log4j.logger.org.apache.hadoop.fs.FSNamesystem.audit=WARN
80
771791c @cutting HADOOP-279. Provide defaults for system properties used in log4j config...
cutting authored
81 # Custom Logging levels
82
83 #log4j.logger.org.apache.hadoop.mapred.JobTracker=DEBUG
84 #log4j.logger.org.apache.hadoop.mapred.TaskTracker=DEBUG
c0f24df HADOOP-1989. Support simulated DataNodes. This helps creating large virt...
Dhruba Borthakur authored
85 #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
771791c @cutting HADOOP-279. Provide defaults for system properties used in log4j config...
cutting authored
86
bc60135 @cutting HADOOP-930. Add support for native S3 files. Contributed by Tom White.
cutting authored
87 # Jets3t library
88 log4j.logger.org.jets3t.service.impl.rest.httpclient.RestS3Service=ERROR
89
71613c7 @cutting HADOOP-1562. Add JVM metrics. Contributed by David Bowen.
cutting authored
90 #
91 # Event Counter Appender
92 # Sends counts of logging messages at different severity levels to Hadoop Metrics.
93 #
94 log4j.appender.EventCounter=org.apache.hadoop.metrics.jvm.EventCounter
Something went wrong with that request. Please try again.