2015-07-31 14:22:50 -04: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.
|
|
|
|
|
2008-02-05 01:15:44 -05:00
|
|
|
# Define some default values that can be overridden by system properties
|
|
|
|
hbase.root.logger=INFO,console
|
2012-05-17 15:36:42 -04:00
|
|
|
hbase.security.logger=INFO,console
|
2008-02-05 01:15:44 -05:00
|
|
|
hbase.log.dir=.
|
|
|
|
hbase.log.file=hbase.log
|
|
|
|
|
|
|
|
# Define the root logger to the system property "hbase.root.logger".
|
|
|
|
log4j.rootLogger=${hbase.root.logger}
|
|
|
|
|
|
|
|
# Logging Threshold
|
2011-05-19 17:05:13 -04:00
|
|
|
log4j.threshold=ALL
|
2008-02-05 01:15:44 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Daily Rolling File Appender
|
|
|
|
#
|
|
|
|
log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
|
|
|
|
log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
|
|
|
|
|
|
|
|
# Rollver at midnight
|
|
|
|
log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
|
|
|
|
|
|
|
|
# 30-day backup
|
|
|
|
#log4j.appender.DRFA.MaxBackupIndex=30
|
|
|
|
log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
|
|
|
|
|
|
|
|
# Pattern format: Date LogLevel LoggerName LogMessage
|
2017-08-05 05:44:09 -04:00
|
|
|
log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n
|
2008-02-05 01:15:44 -05:00
|
|
|
|
2012-03-30 10:46:49 -04:00
|
|
|
# Rolling File Appender properties
|
|
|
|
hbase.log.maxfilesize=256MB
|
|
|
|
hbase.log.maxbackupindex=20
|
|
|
|
|
|
|
|
# Rolling File Appender
|
|
|
|
log4j.appender.RFA=org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.RFA.File=${hbase.log.dir}/${hbase.log.file}
|
|
|
|
|
|
|
|
log4j.appender.RFA.MaxFileSize=${hbase.log.maxfilesize}
|
|
|
|
log4j.appender.RFA.MaxBackupIndex=${hbase.log.maxbackupindex}
|
|
|
|
|
|
|
|
log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
|
2017-08-05 05:44:09 -04:00
|
|
|
log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n
|
2008-02-05 01:15:44 -05:00
|
|
|
|
2012-05-17 15:36:42 -04:00
|
|
|
#
|
|
|
|
# Security audit appender
|
|
|
|
#
|
|
|
|
hbase.security.log.file=SecurityAuth.audit
|
|
|
|
hbase.security.log.maxfilesize=256MB
|
|
|
|
hbase.security.log.maxbackupindex=20
|
|
|
|
log4j.appender.RFAS=org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.RFAS.File=${hbase.log.dir}/${hbase.security.log.file}
|
|
|
|
log4j.appender.RFAS.MaxFileSize=${hbase.security.log.maxfilesize}
|
|
|
|
log4j.appender.RFAS.MaxBackupIndex=${hbase.security.log.maxbackupindex}
|
|
|
|
log4j.appender.RFAS.layout=org.apache.log4j.PatternLayout
|
2017-08-05 05:44:09 -04:00
|
|
|
log4j.appender.RFAS.layout.ConversionPattern=%d{ISO8601} %p %c: %.1000m%n
|
2012-05-17 15:36:42 -04:00
|
|
|
log4j.category.SecurityLogger=${hbase.security.logger}
|
|
|
|
log4j.additivity.SecurityLogger=false
|
2012-12-19 02:52:24 -05:00
|
|
|
#log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.access.AccessController=TRACE
|
2015-01-15 22:13:58 -05:00
|
|
|
#log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.visibility.VisibilityController=TRACE
|
2012-05-17 15:36:42 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Null Appender
|
|
|
|
#
|
|
|
|
log4j.appender.NullAppender=org.apache.log4j.varia.NullAppender
|
2008-02-05 01:15:44 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# console
|
2016-06-17 19:32:57 -04:00
|
|
|
# Add "console" to rootlogger above if you want to use this
|
2008-02-05 01:15:44 -05:00
|
|
|
#
|
|
|
|
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
|
|
|
log4j.appender.console.target=System.err
|
|
|
|
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
2017-08-05 05:44:09 -04:00
|
|
|
log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n
|
2008-02-05 01:15:44 -05:00
|
|
|
|
2016-06-17 19:32:57 -04:00
|
|
|
log4j.appender.asyncconsole=org.apache.hadoop.hbase.AsyncConsoleAppender
|
|
|
|
log4j.appender.asyncconsole.target=System.err
|
|
|
|
|
2008-02-05 01:15:44 -05:00
|
|
|
# Custom Logging levels
|
|
|
|
|
2009-06-23 18:42:01 -04:00
|
|
|
log4j.logger.org.apache.zookeeper=INFO
|
2008-02-05 01:15:44 -05:00
|
|
|
#log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
|
2014-03-27 19:09:59 -04:00
|
|
|
log4j.logger.org.apache.hadoop.hbase=INFO
|
2010-09-20 15:04:41 -04:00
|
|
|
# Make these two classes INFO-level. Make them DEBUG to see more zk debug.
|
|
|
|
log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=INFO
|
|
|
|
log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO
|
2008-07-02 01:32:20 -04:00
|
|
|
#log4j.logger.org.apache.hadoop.dfs=DEBUG
|
2010-09-18 17:56:37 -04:00
|
|
|
# Set this class to log INFO only otherwise its OTT
|
2013-03-20 22:04:07 -04:00
|
|
|
# Enable this to get detailed connection error/retry logging.
|
|
|
|
# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=TRACE
|
|
|
|
|
2010-11-05 16:12:00 -04:00
|
|
|
|
2011-08-12 00:48:24 -04:00
|
|
|
# Uncomment this line to enable tracing on _every_ RPC call (this can be a lot of output)
|
|
|
|
#log4j.logger.org.apache.hadoop.ipc.HBaseServer.trace=DEBUG
|
|
|
|
|
2010-11-05 18:23:41 -04:00
|
|
|
# Uncomment the below if you want to remove logging of client region caching'
|
2014-05-27 13:36:55 -04:00
|
|
|
# and scan of hbase:meta messages
|
2010-11-05 16:12:00 -04:00
|
|
|
# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO
|
2010-11-05 18:23:41 -04:00
|
|
|
# log4j.logger.org.apache.hadoop.hbase.client.MetaScanner=INFO
|
2017-02-27 18:55:32 -05:00
|
|
|
|
|
|
|
# EventCounter
|
|
|
|
# Add "EventCounter" to rootlogger if you want to use this
|
|
|
|
# Uncomment the line below to add EventCounter information
|
|
|
|
# log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter
|
2017-03-03 15:31:00 -05:00
|
|
|
|
|
|
|
# Prevent metrics subsystem start/stop messages (HBASE-17722)
|
|
|
|
log4j.logger.org.apache.hadoop.metrics2.impl.MetricsConfig=WARN
|
|
|
|
log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSinkAdapter=WARN
|
|
|
|
log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN
|