hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars George (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16188) Add EventCounter information to log4j properties file
Date Wed, 06 Jul 2016 19:02:11 GMT
Lars George created HBASE-16188:

             Summary: Add EventCounter information to log4j properties file
                 Key: HBASE-16188
                 URL: https://issues.apache.org/jira/browse/HBASE-16188
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 1.2.1
            Reporter: Lars George
            Priority: Minor

Hadoop's {{JvmMetrics}}, which HBase also is using in Metrics2 and provides it as an MBean,
has the ability to count log4j log calls. This is tracked by a special {{Appender}} class,
also provided by Hadoop, called {{EventCounter}}. 

We should add some info how to enable this (or maybe even enable it by default?).

The appender needs to be added in two places, shown here:

# Define the root logger to the system property "hbase.root.logger".
log4j.rootLogger=${hbase.root.logger}, EventCounter


We could simply add this commented out akin to the {{hbase-env.sh}}.

This message was sent by Atlassian JIRA

View raw message