Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4531EE428 for ; Sat, 29 Dec 2012 23:32:52 +0000 (UTC) Received: (qmail 46473 invoked by uid 500); 29 Dec 2012 23:32:50 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 46387 invoked by uid 500); 29 Dec 2012 23:32:49 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 46375 invoked by uid 500); 29 Dec 2012 23:32:49 -0000 Delivered-To: apmail-hadoop-core-dev@hadoop.apache.org Received: (qmail 46370 invoked by uid 99); 29 Dec 2012 23:32:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 23:32:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 23:32:41 +0000 Received: by mail-oa0-f52.google.com with SMTP id o6so10991718oag.11 for ; Sat, 29 Dec 2012 15:32:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:date:x-google-sender-auth :message-id:subject:from:to:content-type:x-gm-message-state; bh=nf+czr1iatm8FD93pWjlNmnGtJ5josAc3t5MSPvvrAI=; b=FP9Xchn5L+FGSCWzzIKfHHKH9y13F8F3g5EVuWnqmXhLNIyzsLWUvCwYvuWGgU+sWi 2Rw0BWVOrOmgXnz1mYLknDkJIuUjQGzovPpAWgDwX7ikbcXq+8H6FgR+qnldhcTdvXp4 rrlUnyaFkzaV4aier9ZGQOkHrGFEFe8n2PZO7y9DwSu6T0RtxdYiY1FBt7nPd1wpHWJi b3t+YM3nem9yM10BchMUT4V/TUXK+ngbC9kBDwALSHX50ZnxqcrHpxi2A19KSzo7/W7F gYLM/+AtmxHlfbv3hZg+Wi0MBM1WcvsSZVdUSKmZyc/6/j034FvVNdQzpfDRm8PSyInO As+A== MIME-Version: 1.0 Received: by 10.60.172.230 with SMTP id bf6mr18416145oec.102.1356823940438; Sat, 29 Dec 2012 15:32:20 -0800 (PST) Sender: niels@basj.es Received: by 10.76.27.225 with HTTP; Sat, 29 Dec 2012 15:32:20 -0800 (PST) X-Originating-IP: [2001:980:91c0:1:216:eaff:fe5f:3cc6] Date: Sun, 30 Dec 2012 00:32:20 +0100 X-Google-Sender-Auth: MfE6mfKxbuLS8Y3gG721srI444w Message-ID: Subject: Sorting user defined MR counters. From: Niels Basjes To: hadoop_mailing_list Content-Type: multipart/alternative; boundary=bcaec54b4aa0fe1bae04d2063038 X-Gm-Message-State: ALoCoQnf5UJMRp5FyTCOVoj8M+/XSKvdp9uhwlntV3VkOLAIj1E036sIQlDMY0eQ/tn9es3Lgt6R X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54b4aa0fe1bae04d2063038 Content-Type: text/plain; charset=ISO-8859-1 Hi, I've had this 'itch' with Hadoop that it is hard to sort the counters in a "nice" way. Now the current trunk sorts the framework counters in such a way that they follow the flow quite nicely. For the generic counters (i.e. user code counters) this is not possible. I've been playing around these last few days to see if I can extend the API so I can create custom counters from my MR code and have the framework report them in the sorting order I defined that is useful for my specific application. I currently have a working version of this idea here so I'm wondering ... Is this something you would like to have in the main source tree? From my point of view this is very generic and reusable by many projects. If you say 'yes' then I'll simply create a Jira for this and submit the patch. In addition I have a question about the content of such a patch. In some source files I'll be changing there are numerous very basic warnings from both the Java compiler, findbugs and checkstyle. With simple things I mean silly things "unused imports", "an interface that has directives like private and public", "first line of javadoc must end with '.'", "unused SuppressWarnings directives" . I my normal job I commit a source file at least "just as clean" as what I got to start with but preferably I make it "cleaner". That way a warning is something you look at instead of "part of the landslide" which people tend to ignore. Now for submitting changes for Hadoop: Is it desirable that I fix these in my change set or should I leave these as-is to avoid "obfuscating" the changes that are relevant to the Jira at hand? -- Best regards / Met vriendelijke groeten, Niels Basjes --bcaec54b4aa0fe1bae04d2063038--