Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 795CD8870 for ; Thu, 18 Aug 2011 21:34:50 +0000 (UTC) Received: (qmail 35692 invoked by uid 500); 18 Aug 2011 21:34:50 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 35280 invoked by uid 500); 18 Aug 2011 21:34:49 -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 35245 invoked by uid 99); 18 Aug 2011 21:34:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 21:34:48 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 21:34:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7CD5DC3C69 for ; Thu, 18 Aug 2011 21:34:27 +0000 (UTC) Date: Thu, 18 Aug 2011 21:34:27 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1904397754.50628.1313703267508.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <326425408.16119.1311875949621.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4145) Provide metrics for hbase client MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087310#comment-13087310 ] stack commented on HBASE-4145: ------------------------------ @Ming FYI, there is an existing mechanism for setting arbitrary attributes on Scan, etc., objects: http://hbase.apache.org/xref/org/apache/hadoop/hbase/client/Scan.html#453 > Provide metrics for hbase client > -------------------------------- > > Key: HBASE-4145 > URL: https://issues.apache.org/jira/browse/HBASE-4145 > Project: HBase > Issue Type: Improvement > Reporter: Ming Ma > Assignee: Ming Ma > > Sometimes it is useful to get some metrics from hbase client point of view. This will help understand the metrics for scan/TableInputFormat map job scenario. > What to capture, for example, for each ResultScanner object, > 1. The number of RPC calls to RSs. > 2. The delta time between consecutive RPC calls in the current serialized scan implementation. > 3. The number of RPC retry to RSs. > 4. The number of NotServingRegionException got. > 5. The number of remote RPC calls. This excludes those call that hbase client calls the RS on the same machine. > 6. The number of regions accessed. > How to capture > 1. Metrics framework works for a fixed number of metrics. It doesn't fit this scenario. > 2. Use some TBD solution in HBase to capture such dynamic metrics. If we assume there is a solution in HBase that HBase client can use to log such kind of metrics, TableInputFormat can pass in mapreduce task ID as application scan ID to HBase client as small addition to existing scan API; and HBase client can log metrics accordingly with such ID. That will allow query, analysis later on the metrics data for specific map reduce job. > 3. Expose via MapReduce counter. It lacks certain features, for example, there is no good way to access the metrics on per map instance; the MapReduce framework only performs sum on the counter values so it is tricky to find the max of certain metrics in all mapper instances. However, it might be good enough for now. With this approach, the metrics value will be available via MapReduce counter. > a) Have ResultScanner return a new ResultScannerMetrics interface. > b) TableInputFormat will access data from ResultScannerMetrics and populate MapReduce counters accordingly. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira