hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: using pipe in the command executed by slaves.sh
Date Thu, 25 Nov 2010 08:40:20 GMT
Hi,

On Thu, Nov 25, 2010 at 11:49 AM, Ted Yu <yuzhihong@gmail.com> 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  /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..



-- 
Harsh J
www.harshj.com

Mime
View raw message