Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 81089 invoked from network); 22 May 2008 16:56:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2008 16:56:18 -0000 Received: (qmail 39317 invoked by uid 500); 22 May 2008 16:56:18 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 39293 invoked by uid 500); 22 May 2008 16:56:18 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 39277 invoked by uid 99); 22 May 2008 16:56:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2008 09:56:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2008 16:55:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DCF41234C120 for ; Thu, 22 May 2008 09:55:55 -0700 (PDT) Message-ID: <670956696.1211475355903.JavaMail.jira@brutus> Date: Thu, 22 May 2008 09:55:55 -0700 (PDT) From: "Owen O'Malley (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-1915) adding counters methods using String (as opposed to Enum) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Owen O'Malley updated HADOOP-1915: ---------------------------------- Resolution: Fixed Hadoop Flags: [Reviewed] Status: Resolved (was: Patch Available) I forgot to resolve this bug. Thanks, Tom! > adding counters methods using String (as opposed to Enum) > --------------------------------------------------------- > > Key: HADOOP-1915 > URL: https://issues.apache.org/jira/browse/HADOOP-1915 > Project: Hadoop Core > Issue Type: New Feature > Environment: all > Reporter: Alejandro Abdelnur > Assignee: Tom White > Priority: Minor > Fix For: 0.18.0 > > Attachments: hadoop-1915-v10.patch, hadoop-1915-v2.patch, hadoop-1915-v3.patch, hadoop-1915-v4.patch, hadoop-1915-v5.patch, hadoop-1915-v6.patch, hadoop-1915-v7.patch, hadoop-1915-v8.patch, hadoop-1915-v9.patch, hadoop-1915.patch > > > Currently to use the counters from within Map/Reduce code Enums have to be used, the Enum class defines the group and the Enum itself the counter. Internally they are converted to Strings (the class name and the enum toString) and you can retrieve them as strings from the client API. > Using dynamic counters (driven by configuration of the map/reduce) is not easy with the counters Enum based API. For example, currently I have an Enum class with 50 enums and we have to map the cardinality to the counter name on the client. This is cumbersome. > This could be easily improve by adding a String based counter method increment(String group, String counter, long count) to allow use of the counters without Enums. > Internally this method already exists, so the changes are minimal. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.