You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by Ted Yu <yu...@gmail.com> on 2010/08/23 18:02:38 UTC
Obtaining active TaskTrackers
Hi,
How can I obtain the list of active TaskTrackers programmatically ?
I looked at machines.jsp which uses a reference to JobTracker
How do I obtain JobTracker reference from client ?
Thanks
Re: Obtaining active TaskTrackers
Posted by "M. C. Srivas" <mc...@gmail.com>.
JobClient client = new JobClient(jconf);
Collection<String> trackers =
client.getClusterStatus(true).getActiveTrackerNames();
On Mon, Aug 23, 2010 at 9:02 AM, Ted Yu <yu...@gmail.com> wrote:
> Hi,
> How can I obtain the list of active TaskTrackers programmatically ?
> I looked at machines.jsp which uses a reference to JobTracker
>
> How do I obtain JobTracker reference from client ?
>
> Thanks
>