Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40882D8DD for ; Tue, 13 Nov 2012 05:48:04 +0000 (UTC) Received: (qmail 62754 invoked by uid 500); 13 Nov 2012 05:47:55 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 62534 invoked by uid 500); 13 Nov 2012 05:47:55 -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 62506 invoked by uid 99); 13 Nov 2012 05:47:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 05:47:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_HTML_MOSTLY,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 05:47:44 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp12so4924329pab.35 for ; Mon, 12 Nov 2012 21:47:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:mime-version:x-gm-message-state; bh=Dw9xIXogIzPhGY1Bb/4rtZPNIxb7uagd/gOhrwxIwu4=; b=gCLyktsz5fOegwBY85BPdOnoaeURk4AJwo+EkLaAEVeiUagGOlBOhLOReUqbbYFMMK fZrNw6+PJGbaTICqXPzr9aErLF9rPae64/ZtexFwGMWB4YsmXo3w+ZGQOKo15ykLABSv DmHTWLXN/PHdg0Ttm0KGusrwj7fsDI59dpqRbXBprOEyjqJeVOkY6sH0MZZSkoDrkKuw gGtexYxGhmIIEoqpTto+2awWqbsZ5ZeUf2qRcSodMgh9ol8GwoyvSU3ORvj9LGuVoqc6 +Lz6y4AZ35CBBzlFMCtGOzSNtRsunsKQl3f19WoZYbE+0KIM6GStSGlym3cj+RGrQw7c uz2g== Received: by 10.66.87.202 with SMTP id ba10mr61085220pab.72.1352785642703; Mon, 12 Nov 2012 21:47:22 -0800 (PST) Received: from [192.168.1.111] (173-8-138-90-SFBA.hfc.comcastbusiness.net. [173.8.138.90]) by mx.google.com with ESMTPS id ju7sm5408718pbb.60.2012.11.12.21.47.21 (version=SSLv3 cipher=OTHER); Mon, 12 Nov 2012 21:47:21 -0800 (PST) Subject: machine.jsp References: From: Bharati Content-Type: multipart/mixed; boundary="----=neXtPaRt_1352785641" X-Mailer: iPad Mail (10A403) In-Reply-To: Message-Id: Date: Mon, 12 Nov 2012 21:47:21 -0800 To: "user@hadoop.apache.org" Mime-Version: 1.0 (1.0) X-Gm-Message-State: ALoCoQlEQrr031WfWv+M7CVmr/P5SWqCn9No4cRpytAuTlUpVkcTa4wKF4o+xR2xINifCit0auD6 X-Virus-Checked: Checked by ClamAV on apache.org ------=neXtPaRt_1352785641 Content-Type: multipart/alternative; boundary=Apple-Mail-5EC9F72E-F3FB-43CE-ADC7-34339069CE63 Content-Transfer-Encoding: 7bit --Apple-Mail-5EC9F72E-F3FB-43CE-ADC7-34339069CE63 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi, I am new to hadoop. I am trying to use for (StatisticsCollector.TimeWindow window : tracker.getStatistics(). collec= tor.DEFAULT_COLLECT_WINDOWS) { JobTrackerStatistics.TaskTrackerStat ttStat =3D= tracker.getStatistics(). getTaskTrackerStat(tt.getTrackerName()); out.print= ln("" + ttStat.totalTasksStat.getValues(). get(window).getValue());= out.println("" + ttStat.succeededTasksStat.getValues(). get(window= ).getValue()); } Just as used in machines.jsp. It throws an exception. I am surely missing s= omething. How I can get the total number of tasks and total number of task succeeded. Thanks, Bharati= --Apple-Mail-5EC9F72E-F3FB-43CE-ADC7-34339069CE63 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Hi,
I am new to hadoop.
I am trying to use

for (StatisticsCollector.TimeWindow window : tracker.getStatistics().
          collector.DEFAULT_COLLECT_WINDOWS) {
          JobTrackerStatistics.TaskTrackerStat ttStat = tracker.getStatistics().
             getTaskTrackerStat(tt.getTrackerName());
          out.println("</td><td>" + ttStat.totalTasksStat.getValues().
                                get(window).getValue());
          out.println("</td><td>" + ttStat.succeededTasksStat.getValues().
                                get(window).getValue());
        }
Just as used in machines.jsp.  It throws an exception. I am surely missing something.
How I can get the total number of tasks and total number of task succeeded.
Thanks,
Bharati
--Apple-Mail-5EC9F72E-F3FB-43CE-ADC7-34339069CE63-- ------=neXtPaRt_1352785641 Content-Type: text/plain; Fortigate Filtered ------=neXtPaRt_1352785641--