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 A0042F5A3 for ; Wed, 27 Mar 2013 10:28:37 +0000 (UTC) Received: (qmail 42182 invoked by uid 500); 27 Mar 2013 10:28:32 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 41981 invoked by uid 500); 27 Mar 2013 10:28:32 -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 41959 invoked by uid 99); 27 Mar 2013 10:28:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 10:28:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.210.177 as permitted sender) Received: from [209.85.210.177] (HELO mail-ia0-f177.google.com) (209.85.210.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 10:28:27 +0000 Received: by mail-ia0-f177.google.com with SMTP id w33so3993649iag.8 for ; Wed, 27 Mar 2013 03:28:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding :x-gm-message-state; bh=3F86hhuVorwJ8wOSnF9voYuDl+EprXKde5AGuYDFgRk=; b=dYYxwcz/62rUO7+8ipMXy2dUljR8N7JiKMwI3Kx5by32YV7zn8QnsC+bpSQt6SA77l hP9zuq/Vk0KAmYtEA5Qm4KiQKF4b2FnCkJJNAzYvd9Ns2q9sIJKQCfPwHZ14MXbcAMXa r5n36QJDce9sU/SMQ5R92XHCwgyKeNAcl4gLNfRlcmMufSgcnDypMbSX2orI2u6ChVVB IJ9bwad67lUyjxjfo18wEwKAIjQF4BG7JdjcnHtY/bAnIshqsNPdvu9bLHN43dy6eiyz 3/ghaC22MVre8YI3eI1yHcAL0tcoO17BfUhOhQAnp/TR8EWcsgZ6H797GDZynmpeZpvd AIXw== X-Received: by 10.50.138.166 with SMTP id qr6mr3716998igb.45.1364380087177; Wed, 27 Mar 2013 03:28:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.135.37 with HTTP; Wed, 27 Mar 2013 03:27:46 -0700 (PDT) In-Reply-To: <1364379708.10241.YahooMailNeo@web194703.mail.sg3.yahoo.com> References: <1364379708.10241.YahooMailNeo@web194703.mail.sg3.yahoo.com> From: Harsh J Date: Wed, 27 Mar 2013 15:57:46 +0530 Message-ID: Subject: Re: System.out.printlin vs Counters To: "" , Sai Sai Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnRZoTR9yl5C3grEb4tXsYYzDuI5VnlFYxem0H+UUZkWyi55y64kaRM8Fwvw7m+SQ+jNlPs X-Virus-Checked: Checked by ClamAV on apache.org I do not understand 1 and 2: Counters are used to count things in the MR framework in a distributed manner and get aggregate at the JobTracker level; System.out is merely used to write to STDOUT. Why are you comparing the two? 3: The limit means the total number of counter names accepted from a single job. Your example would create one such new counter called TestGroup1.TestName1. You could also increment TestName2, etc.=85 but only up to a global max of 120 of such new counters. On Wed, Mar 27, 2013 at 3:51 PM, Sai Sai wrote: > Q1. Is it right to assume the System.out.println statements are used only= in > eclipse environment and > In a multi node cluster environment we need to use counters. > > Q2. I am slightly confused as it appears like using System.out.println > statements > we r able to get detailed info at every line of code in eclipse and count= ers > just give few lines and not as detailed as System.out.println statements = do > so what should we do in a multi node cluster enivronment. > > Q3. Also when they say the limit of counters is 120 does that mean that i= n > the output if we use: > context.getCounters("TestGroup1","TestName1").increment(1); > more than 120 times it will not print it. or does it refer to 120 options= of > counters in an enum that we can define. > > Any help is really appreciated. > Thanks > Sai > > -- Harsh J