Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 22021200C23 for ; Wed, 22 Feb 2017 23:33:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 20C96160B72; Wed, 22 Feb 2017 22:33:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63DDB160B49 for ; Wed, 22 Feb 2017 23:33:48 +0100 (CET) Received: (qmail 52241 invoked by uid 500); 22 Feb 2017 22:33:47 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 52229 invoked by uid 99); 22 Feb 2017 22:33:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 22:33:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2543C18E170 for ; Wed, 22 Feb 2017 22:33:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tWN2e7fJXixS for ; Wed, 22 Feb 2017 22:33:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3A5575FC3C for ; Wed, 22 Feb 2017 22:33:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 484D0E0A75 for ; Wed, 22 Feb 2017 22:33:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AB8C224130 for ; Wed, 22 Feb 2017 22:33:44 +0000 (UTC) Date: Wed, 22 Feb 2017 22:33:44 +0000 (UTC) From: "Gopi Krishnan Nambiar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16188) Add EventCounter information to log4j properties file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Feb 2017 22:33:49 -0000 [ https://issues.apache.org/jira/browse/HBASE-16188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gopi Krishnan Nambiar updated HBASE-16188: ------------------------------------------ Attachment: HBASE-16188.master.patch HBASE-16188-branch-1.3.patch > 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 > Assignee: Gopi Krishnan Nambiar > Priority: Minor > Labels: beginner > Fix For: 2.0.0, 1.3.0 > > Attachments: HBASE-16188-branch-1.3.patch, HBASE-16188.master.patch > > > 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: > {noformat} > hbase.root.logger=INFO,console > ... > # Define the root logger to the system property "hbase.root.logger". > log4j.rootLogger=${hbase.root.logger}, EventCounter > log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter > {noformat} > We could simply add this commented out akin to the {{hbase-env.sh}}. -- This message was sent by Atlassian JIRA (v6.3.15#6346)