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 9F6EB180A7 for ; Mon, 18 May 2015 20:57:00 +0000 (UTC) Received: (qmail 42395 invoked by uid 500); 18 May 2015 20:57:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 42341 invoked by uid 500); 18 May 2015 20:57:00 -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 42329 invoked by uid 99); 18 May 2015 20:57:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2015 20:57:00 +0000 Date: Mon, 18 May 2015 20:57:00 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13707) CellCounter uses to many counters 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-13707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14549211#comment-14549211 ] Jean-Marc Spaggiari commented on HBASE-13707: --------------------------------------------- Exactly. Very good for very wide tables with only few rows. You can still increase the maximum number of counters but it become crazy quickly. [code] context.getCounter("QL_VERSIONS", currentRowKey + separator + thisRowQualifierName).increment(1); [code] It creates one counter per row using the rowkey as the name to give you how many cells and versions there is per row. It's still useful in some cases, but generally speaking it creates to many counters... I think we should "simply" add an option to not count per row, but only per table, so just add a parameter and an if before this line. > CellCounter uses to many counters > --------------------------------- > > Key: HBASE-13707 > URL: https://issues.apache.org/jira/browse/HBASE-13707 > Project: HBase > Issue Type: Bug > Components: mapreduce > Affects Versions: 1.0.1 > Reporter: Jean-Marc Spaggiari > Priority: Minor > Labels: beginner, newbie > > CellCounters creates a counter per row... So it quickly becomes to many. > We should provide an option to drop the statistic per rows and count only cells overall for the table. -- This message was sent by Atlassian JIRA (v6.3.4#6332)