Thanks so much Harsh! On Thu, Sep 29, 2011 at 12:42 AM, Harsh J <[email protected]> wrote:
> Hello Bikash, > > The tasks run on the tasktracker, so that is where you'll need to look > for the process ID -- not the JobTracker/client. > > Crudely speaking, > $ ssh tasktracker01 # or whichever. > $ jps | grep Child | cut -d " " -f 1 > # And lo, PIDs to play with. > > On Thu, Sep 29, 2011 at 12:15 AM, bikash sharma <[email protected]> > wrote: > > Hi, > > Is it possible to get the process id of each task in a MapReduce job? > > When I run a mapreduce job and do a monitoring in linux using ps, i just > see > > the id of the mapreduce job process but not its constituent map/reduce > > tasks. > > The use case is to monitor the resource usage of each task by using sar > > utility in linux with specific process id of task. > > > > Thanks, > > Bikash > > > > > > -- > Harsh J >
