hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhenhua Guo <jen...@gmail.com>
Subject Re: How to get metrics information?
Date Sun, 23 Jan 2011 02:38:05 GMT
Thanks!
How to get JobTracker object?

Gerald

On Sun, Jan 23, 2011 at 5:46 AM, Ted Yu <yuzhihong@gmail.com> wrote:
> You can use the following code:
>        JobClient jc = new JobClient(jobConf);
>        int numReduces = jc.getClusterStatus().getMaxReduceTasks();
>
> For 0.20.3, you can use:
>    ClusterMetrics metrics = jobTracker.getClusterMetrics();
>
> On Sat, Jan 22, 2011 at 9:57 AM, Zhenhua Guo <jenvor@gmail.com> wrote:
>
>> I want to get metrics information (e.g. number of Maps, number of
>> Reduces, memory use, load) by APIs. I found two useful classes -
>> ClusterStatus and ClusterMetrics. My question is how I can get
>> instances of that two classes? From JobClient or JobTracker? Any
>> suggested alternative way to get the information?
>>
>> Thanks
>>
>> Gerald
>>
>

Mime
View raw message