Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 85514 invoked from network); 26 Feb 2007 23:55:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 23:55:27 -0000 Received: (qmail 5969 invoked by uid 500); 26 Feb 2007 23:55:35 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 5944 invoked by uid 500); 26 Feb 2007 23:55:35 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 5935 invoked by uid 99); 26 Feb 2007 23:55:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 15:55:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 15:55:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AAD3171403E for ; Mon, 26 Feb 2007 15:55:05 -0800 (PST) Message-ID: <9289084.1172534105697.JavaMail.jira@brutus> Date: Mon, 26 Feb 2007 15:55:05 -0800 (PST) From: "Arun C Murthy (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1041) Counter names are ugly In-Reply-To: <5186555.1172466305502.JavaMail.jira@brutus> 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-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476043 ] Arun C Murthy commented on HADOOP-1041: --------------------------------------- +1 on Doug's last comment. Let us worry about i18n when we get there... seems quite an overkill for simple counter names for now. > Counter names are ugly > ---------------------- > > Key: HADOOP-1041 > URL: https://issues.apache.org/jira/browse/HADOOP-1041 > Project: Hadoop > Issue Type: Improvement > Components: mapred > Affects Versions: 0.12.0 > Reporter: Owen O'Malley > Fix For: 0.12.0 > > > Having the complete class name in the counter names makes them unique, but they are ugly to present to non-developers. It would be nice to have some way to have a nicer string presented to the user. Currently, the Enum is converted to a name like: > key.getDeclaringClass().getName() + "#" + key.toString() > which gives counter names like "org.apache.hadoop.examples.RandomWriter$Counters#BYTES_WRITTEN" > which is unique, but not very user friendly. Perhaps, we should strip off the class name for presenting to the users, which would allow them to make nice names. In particular, you could define an enum type that overloaded toString to print a nice user friendly string. > Thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.