1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Define some default values that can be overridden by system properties
18 hbase.root.logger=INFO,console
19 hbase.security.logger=INFO,console
21 hbase.log.file=hbase.log
24 # Define the root logger to the system property "hbase.root.logger".
25 log4j.rootLogger=${hbase.root.logger}
31 # Daily Rolling File Appender
33 log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
34 log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
37 log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
40 #log4j.appender.DRFA.MaxBackupIndex=30
41 log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
43 # Pattern format: Date LogLevel LoggerName LogMessage
44 log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n
46 # Rolling File Appender properties
47 hbase.log.maxfilesize=256MB
48 hbase.log.maxbackupindex=20
50 # Rolling File Appender
51 log4j.appender.RFA=org.apache.log4j.RollingFileAppender
52 log4j.appender.RFA.File=${hbase.log.dir}/${hbase.log.file}
54 log4j.appender.RFA.MaxFileSize=${hbase.log.maxfilesize}
55 log4j.appender.RFA.MaxBackupIndex=${hbase.log.maxbackupindex}
57 log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
58 log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n
61 # Security audit appender
63 hbase.security.log.file=SecurityAuth.audit
64 hbase.security.log.maxfilesize=256MB
65 hbase.security.log.maxbackupindex=20
66 log4j.appender.RFAS=org.apache.log4j.RollingFileAppender
67 log4j.appender.RFAS.File=${hbase.log.dir}/${hbase.security.log.file}
68 log4j.appender.RFAS.MaxFileSize=${hbase.security.log.maxfilesize}
69 log4j.appender.RFAS.MaxBackupIndex=${hbase.security.log.maxbackupindex}
70 log4j.appender.RFAS.layout=org.apache.log4j.PatternLayout
71 log4j.appender.RFAS.layout.ConversionPattern=%d{ISO8601} %p %c: %.1000m%n
72 log4j.category.SecurityLogger=${hbase.security.logger}
73 log4j.additivity.SecurityLogger=false
74 #log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.access.AccessController=TRACE
75 #log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.visibility.VisibilityController=TRACE
80 log4j.appender.NullAppender=org.apache.log4j.varia.NullAppender
84 # Add "console" to rootlogger above if you want to use this
86 log4j.appender.console=org.apache.log4j.ConsoleAppender
87 log4j.appender.console.target=System.err
88 log4j.appender.console.layout=org.apache.log4j.PatternLayout
89 log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n
91 log4j.appender.asyncconsole=org.apache.hadoop.hbase.AsyncConsoleAppender
92 log4j.appender.asyncconsole.target=System.err
94 # Custom Logging levels
96 log4j.logger.org.apache.zookeeper=${hbase.log.level}
97 #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
98 log4j.logger.org.apache.hadoop.hbase=${hbase.log.level}
99 log4j.logger.org.apache.hadoop.hbase.META=${hbase.log.level}
100 # Make these two classes INFO-level. Make them DEBUG to see more zk debug.
101 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=${hbase.log.level}
102 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKWatcher=${hbase.log.level}
103 #log4j.logger.org.apache.hadoop.dfs=DEBUG
104 # Set this class to log INFO only otherwise its OTT
105 # Enable this to get detailed connection error/retry logging.
106 # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=TRACE
109 # Uncomment this line to enable tracing on _every_ RPC call (this can be a lot of output)
110 #log4j.logger.org.apache.hadoop.ipc.HBaseServer.trace=DEBUG
112 # Uncomment the below if you want to remove logging of client region caching'
113 # and scan of hbase:meta messages
114 # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=INFO
117 # Add "EventCounter" to rootlogger if you want to use this
118 # Uncomment the line below to add EventCounter information
119 # log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter
121 # Prevent metrics subsystem start/stop messages (HBASE-17722)
122 log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN
123 log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN
124 log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN