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
23 # Define the root logger to the system property "hbase.root.logger".
24 log4j.rootLogger=${hbase.root.logger}
30 # Daily Rolling File Appender
32 log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
33 log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
36 log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
39 #log4j.appender.DRFA.MaxBackupIndex=30
40 log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
42 # Pattern format: Date LogLevel LoggerName LogMessage
43 log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
45 # Rolling File Appender properties
46 hbase.log.maxfilesize=256MB
47 hbase.log.maxbackupindex=20
49 # Rolling File Appender
50 log4j.appender.RFA=org.apache.log4j.RollingFileAppender
51 log4j.appender.RFA.File=${hbase.log.dir}/${hbase.log.file}
53 log4j.appender.RFA.MaxFileSize=${hbase.log.maxfilesize}
54 log4j.appender.RFA.MaxBackupIndex=${hbase.log.maxbackupindex}
56 log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
57 log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
60 # Security audit appender
62 hbase.security.log.file=SecurityAuth.audit
63 hbase.security.log.maxfilesize=256MB
64 hbase.security.log.maxbackupindex=20
65 log4j.appender.RFAS=org.apache.log4j.RollingFileAppender
66 log4j.appender.RFAS.File=${hbase.log.dir}/${hbase.security.log.file}
67 log4j.appender.RFAS.MaxFileSize=${hbase.security.log.maxfilesize}
68 log4j.appender.RFAS.MaxBackupIndex=${hbase.security.log.maxbackupindex}
69 log4j.appender.RFAS.layout=org.apache.log4j.PatternLayout
70 log4j.appender.RFAS.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
71 log4j.category.SecurityLogger=${hbase.security.logger}
72 log4j.additivity.SecurityLogger=false
73 #log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.access.AccessController=TRACE
74 #log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.visibility.VisibilityController=TRACE
79 log4j.appender.NullAppender=org.apache.log4j.varia.NullAppender
83 # Add "console" to rootlogger above if you want to use this
85 log4j.appender.console=org.apache.log4j.ConsoleAppender
86 log4j.appender.console.target=System.err
87 log4j.appender.console.layout=org.apache.log4j.PatternLayout
88 log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
90 log4j.appender.asyncconsole=org.apache.hadoop.hbase.AsyncConsoleAppender
91 log4j.appender.asyncconsole.target=System.err
93 # Custom Logging levels
95 log4j.logger.org.apache.zookeeper=INFO
96 #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
97 log4j.logger.org.apache.hadoop.hbase=INFO
98 log4j.logger.org.apache.hadoop.hbase.META=INFO
99 # Make these two classes INFO-level. Make them DEBUG to see more zk debug.
100 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=INFO
101 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO
102 #log4j.logger.org.apache.hadoop.dfs=DEBUG
103 # Set this class to log INFO only otherwise its OTT
104 # Enable this to get detailed connection error/retry logging.
105 # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=TRACE
108 # Uncomment this line to enable tracing on _every_ RPC call (this can be a lot of output)
109 #log4j.logger.org.apache.hadoop.ipc.HBaseServer.trace=DEBUG
111 # Uncomment the below if you want to remove logging of client region caching'
112 # and scan of hbase:meta messages
113 # log4j.logger.org.apache.hadoop.hbase.client.ConnectionImplementation=INFO
116 # Add "EventCounter" to rootlogger if you want to use this
117 # Uncomment the line below to add EventCounter information
118 # log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter
120 # Prevent metrics subsystem start/stop messages (HBASE-17722)
121 log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN
122 log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN
123 log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN