Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA77ADF2A for ; Tue, 30 Oct 2012 03:49:11 +0000 (UTC) Received: (qmail 92960 invoked by uid 500); 30 Oct 2012 03:49:08 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 91630 invoked by uid 500); 30 Oct 2012 03:49:06 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 91601 invoked by uid 99); 30 Oct 2012 03:49:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 03:49:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhunansjtu@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 03:48:56 +0000 Received: by mail-qc0-f176.google.com with SMTP id n41so3531818qco.35 for ; Mon, 29 Oct 2012 20:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type; bh=QP74TYp5Dd5mbo/rgDSBPVpXB6BPP4OHRp4chI5LUi8=; b=RQZL4f1RerglMUL8tVVLlPsKal75ZyWxyQcvXFbSS3KMTzYswJCHtrs0LHbvWojos7 Iwo1cBOH+55T5L+Z4mVZA+KY5pEHuWy42qrNXMzIOBhiBO4qTP5cTGPXhesRqcDkAFvJ aSVHN25E/Dg37l0lGNoDhZOcIgVLCP40dgElPvUPcj51hy+hvsbPwVs5c5tQbHOFg7iV yq+BGpzqibSTHUsUGdVx54c4gJFb3ZYHrsqr5QLoSfBjVTMGI/Fxk7CRL4e4M9bLkQ6r u0kpkE8lk+9TGiqkTZefQvZPBne9NiC5Uslw/hJzwrSU+1gxU++hRrYUFCvNKClIZw/l Jymw== Received: by 10.224.216.194 with SMTP id hj2mr8244607qab.25.1351568915464; Mon, 29 Oct 2012 20:48:35 -0700 (PDT) Received: from [192.168.2.11] ([69.159.115.106]) by mx.google.com with ESMTPS id j9sm7100969qac.15.2012.10.29.20.48.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 20:48:35 -0700 (PDT) Date: Mon, 29 Oct 2012 23:49:04 -0400 From: Nan Zhu To: user@hadoop.apache.org Message-ID: <53A5F06D3333408BBB3A650928DDD905@gmail.com> Subject: Access Hadoop Counters X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="508f4e30_2901d82_11e" X-Virus-Checked: Checked by ClamAV on apache.org --508f4e30_2901d82_11e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, all I noticed that in FileInputFormat and FileOutputFormat classes, there are counters(Counter's name?) for input and output data size, my question is that given a JobInProgress object, e.g. jip, after I get the corresponding object by FileInputFormat fif = (FileInputFormat) jip.getConf().getInputFormat(); FileOutputFormat fof = (FileOutputFormat) jip.getConf().getOutputputFormat(); How can I access the values of the counters? Best, -- Nan Zhu School of Computer Science, McGill University --508f4e30_2901d82_11e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi, all

I noticed that in =46ileInput=46= ormat and =46ileOutput=46ormat classes, there are counters(Counter's name= =3F) for input and output data size, 

my qu= estion is that given a JobInProgress object, e.g. jip, after I get the co= rresponding object by 

=46ileInput=46ormat = fif =3D (=46ileInput=46ormat) jip.getConf().getInput=46ormat();
=46ileOutput=46ormat fof =3D (=46ileOutput=46ormat) jip.getConf().getOut= putput=46ormat();

How can I access the values of= the counters=3F

Best,

-- 
Nan Zhu
=
School of Computer Science,
McGill University

--508f4e30_2901d82_11e--