Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - how to get each task's process


Copy link to this message
-
Re: Re: how to get each task's process
Nan Zhu 2011-03-29, 15:55
Oh,  I missed that..shy.....

TaskRunner is extended from thread, I think
Thread.currendThread().getName() may be the answer

But I have a impression on that the java api cannot give the real thread id
since java doesn't allow user to manage the thread, I mean that you can only
get a id of java object instead of the id in OS....

Best,

Nan
2011/3/29 朱韬 <[EMAIL PROTECTED]>

> Nan:
>     Thanks, I mean process, not progress
>
>
>
>
> 在 2011-03-29 23:05:29,"Nan Zhu" <[EMAIL PROTECTED]> 写道:
>
> >TaskStatus.getprogress() is helpful
> >
> >Best,
> >Nan
> >
> >2011/3/29 朱韬 <[EMAIL PROTECTED]>
> >
> >> hi,guys:
> >>       I want to monitor each tasks' io usage, do can I get each task's
> >> process id?
> >>       I used  jvmManager.getPid(tip.getTaskRunner()); but it didn't seem
> to
> >> be the task's process.
> >>       Thanks
> >>
> >>                     zhutao
> >
> >
> >
> >
> >--
> >Nan Zhu
> >School of Software,5501
> >Shanghai Jiao Tong University
> >800,Dongchuan Road,Shanghai,China
> >E-Mail: [EMAIL PROTECTED]
>

--
Nan Zhu
School of Software,5501
Shanghai Jiao Tong University
800,Dongchuan Road,Shanghai,China
E-Mail: [EMAIL PROTECTED]