Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 43155 invoked from network); 21 Jul 2008 21:55:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2008 21:55:50 -0000 Received: (qmail 76237 invoked by uid 500); 21 Jul 2008 21:55:43 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 76197 invoked by uid 500); 21 Jul 2008 21:55:43 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 76163 invoked by uid 99); 21 Jul 2008 21:55:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 14:55:43 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of d4nielfree@gmail.com designates 72.14.252.156 as permitted sender) Received: from [72.14.252.156] (HELO po-out-1718.google.com) (72.14.252.156) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 21:54:49 +0000 Received: by po-out-1718.google.com with SMTP id y22so4401312pof.4 for ; Mon, 21 Jul 2008 14:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=6TC0Xg7ZGn7WTghnK+uj2uY+2VPYL4CCPknDRzcigqM=; b=IViv6f3fxEnAN6VHnXmdNUutwUcDAwuMMc9ajt4KbE8SxNtI/eC+Yz4QWrJWASXp23 o6XPHtHWpJjXPPoRLMPXcwwbk0+a76rK3AwmlSelhaDfeR2ALrlKW6bNm7R5soGrNHDp WkczfY+MRtOxS+uYi/dIiEJ3O24wdEVAEevOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=xcdwTnViKmD+HMgIdaUSDb6us4h+D2Vrt5rr6IKt9O1r9wCMdBD/20BqxC+4zTVAQh 4FJlo4OX2krdaYIWZDCdfioaYwd+Y5hVAWBrRh+D7ClJueFq8Abfa9XcXT0BuLb7UEBq HxGjUkN/kpKAhAwE5AhvWjYC49HeIjQBcR/+c= Received: by 10.141.1.2 with SMTP id d2mr2125373rvi.42.1216677314704; Mon, 21 Jul 2008 14:55:14 -0700 (PDT) Received: by 10.140.170.3 with HTTP; Mon, 21 Jul 2008 14:55:14 -0700 (PDT) Message-ID: <6a8ad9cf0807211455v55527f88t4647c50ab11a40cd@mail.gmail.com> Date: Mon, 21 Jul 2008 22:55:14 +0100 From: "Daniel Yu" To: core-user@hadoop.apache.org Subject: question about Counters MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_66630_12894246.1216677314695" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_66630_12894246.1216677314695 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi, i defined a counter of my own, and updated it in map method, protected static enum MyCounter { INPUT_WORDS }; ... public void map(...) { ... reporter.incrCounter(MyCounter.INPUT_WORDS, 1); } and can i fetch the counts later? like in the run() method after the job is finished, coz i want to store it as a parameter file for later MR jobs. looks like the framework will use Counters.getCounter(enum key) to return a certain count, which can be seen when the JobClient tries to run a job, but in my application(outside the job running) how can i get the Counters object? my guess is its maintained by the framework, so user doesnt need to create Counters object in the application. Thanks. Daniel ------=_Part_66630_12894246.1216677314695--