Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 7654 invoked from network); 25 Nov 2010 08:47:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Nov 2010 08:47:49 -0000 Received: (qmail 59317 invoked by uid 500); 25 Nov 2010 08:41:08 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 59073 invoked by uid 500); 25 Nov 2010 08:41:07 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 59064 invoked by uid 99); 25 Nov 2010 08:41:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 08:41:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of qwertymaniac@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 08:41:00 +0000 Received: by fxm2 with SMTP id 2so568551fxm.35 for ; Thu, 25 Nov 2010 00:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=SXkLbUOVtqfHD8005GPIbBgcVZjBw1UP2QtiOy8ZVSQ=; b=CitcZxQt9i4UJ3Vi24GcydMo2g+BUV4IyFT9ha6TuGwkOraedAD6IdViN587exCIAR 4ReiGnHKb7KpIGx4mR1Gv1wIeTqOjDjz6s2PM0ZUFOb/x6UG6+d1gk8+q2jfByfaK/8Q FEOXJ7HKblNQrIFg8ZUaV7Bcn/Z0HntIvg4QU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=qx/8grjUCdt/RXMQnS0p8xqMj73GQiU3ZpviZ0bAcvrVjYDFeMnt5T30abIzjE4Kid HlklRoR3NfXrEEEDGpi0Ootw7DC9outS3sHRLqlXJ+R9fI5K4+fdJeU1zT8sh+R1tiZZ lM4kDkwbb2TrjvMx5+jB2MVenS/ujpLMSxztM= Received: by 10.223.122.146 with SMTP id l18mr406894far.67.1290674440463; Thu, 25 Nov 2010 00:40:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.113.145 with HTTP; Thu, 25 Nov 2010 00:40:20 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Thu, 25 Nov 2010 14:10:20 +0530 Message-ID: Subject: Re: using pipe in the command executed by slaves.sh To: mapreduce-dev@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Thu, Nov 25, 2010 at 11:49 AM, Ted Yu wrote: > Hi, > We use cdh3b2 > I want to get per-tasktracker statictics, such as the count of map/reduce > tasks on each node. > The following returns total: > slaves.sh =A0/usr/java/default/bin/jps | /bin/grep Child | /usr/bin/wc > > How do I get per-node count ? You could get it by passing that entire command to the slaves? Something like slaves.sh '/usr/java/default/bin/jps | /bin/grep Child | /usr/bin/wc -l' should work I think, instead of aggregating in your shell.. --=20 Harsh J www.harshj.com