Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 15900 invoked from network); 13 Mar 2008 13:07:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2008 13:07:28 -0000 Received: (qmail 39682 invoked by uid 500); 13 Mar 2008 13:07:23 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 39643 invoked by uid 500); 13 Mar 2008 13:07:23 -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 39616 invoked by uid 99); 13 Mar 2008 13:07:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 06:07:22 -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, 13 Mar 2008 13:06:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 69E36234C098 for ; Thu, 13 Mar 2008 06:05:49 -0700 (PDT) Message-ID: <812859528.1205413549432.JavaMail.jira@brutus> Date: Thu, 13 Mar 2008 06:05:49 -0700 (PDT) From: "Tom White (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 ] Tom White updated HADOOP-1915: ------------------------------ Fix Version/s: 0.17.0 Status: Patch Available (was: Open) > 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: Christopher Zimmerman > Priority: Minor > Fix For: 0.17.0 > > Attachments: 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.