1 # Define some default values that can be overridden by system properties
2 hbase.root.logger=INFO,console
3 hbase.security.logger=INFO,console
5 hbase.log.file=hbase.log
7 # Define the root logger to the system property "hbase.root.logger".
8 log4j.rootLogger=${hbase.root.logger}
14 # Daily Rolling File Appender
16 log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
17 log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
20 log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
23 #log4j.appender.DRFA.MaxBackupIndex=30
24 log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
26 # Pattern format: Date LogLevel LoggerName LogMessage
27 log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
29 # Rolling File Appender properties
30 hbase.log.maxfilesize=256MB
31 hbase.log.maxbackupindex=20
33 # Rolling File Appender
34 log4j.appender.RFA=org.apache.log4j.RollingFileAppender
35 log4j.appender.RFA.File=${hbase.log.dir}/${hbase.log.file}
37 log4j.appender.RFA.MaxFileSize=${hbase.log.maxfilesize}
38 log4j.appender.RFA.MaxBackupIndex=${hbase.log.maxbackupindex}
40 log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
41 log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
44 # Security audit appender
46 hbase.security.log.file=SecurityAuth.audit
47 hbase.security.log.maxfilesize=256MB
48 hbase.security.log.maxbackupindex=20
49 log4j.appender.RFAS=org.apache.log4j.RollingFileAppender
50 log4j.appender.RFAS.File=${hbase.log.dir}/${hbase.security.log.file}
51 log4j.appender.RFAS.MaxFileSize=${hbase.security.log.maxfilesize}
52 log4j.appender.RFAS.MaxBackupIndex=${hbase.security.log.maxbackupindex}
53 log4j.appender.RFAS.layout=org.apache.log4j.PatternLayout
54 log4j.appender.RFAS.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
55 log4j.category.SecurityLogger=${hbase.security.logger}
56 log4j.additivity.SecurityLogger=false
57 #log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.access.AccessController=TRACE
58 #log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.visibility.VisibilityController=TRACE
63 log4j.appender.NullAppender=org.apache.log4j.varia.NullAppender
67 # Add "console" to rootlogger above if you want to use this
69 log4j.appender.console=org.apache.log4j.ConsoleAppender
70 log4j.appender.console.target=System.err
71 log4j.appender.console.layout=org.apache.log4j.PatternLayout
72 log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
74 # Custom Logging levels
76 log4j.logger.org.apache.zookeeper=INFO
77 #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
78 log4j.logger.org.apache.hadoop.hbase=INFO
79 # Make these two classes INFO-level. Make them DEBUG to see more zk debug.
80 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=INFO
81 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO
82 #log4j.logger.org.apache.hadoop.dfs=DEBUG
83 # Set this class to log INFO only otherwise its OTT
84 # Enable this to get detailed connection error/retry logging.
85 # log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=TRACE
88 # Uncomment this line to enable tracing on _every_ RPC call (this can be a lot of output)
89 #log4j.logger.org.apache.hadoop.ipc.HBaseServer.trace=DEBUG
91 # Uncomment the below if you want to remove logging of client region caching'
92 # and scan of hbase:meta messages
93 # log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO
94 # log4j.logger.org.apache.hadoop.hbase.client.MetaScanner=INFO