Mahesh,

The JobTracker is not a user-end API, it is a service. You can't query
it for its private objects as simply as that, and hence what you've
suggested would not work.

Pedro,

To get a RunningJob instance from a String representing the JobID you
need the JobClient class, and you can do like so:

JobClient jc = new JobClient(jobConf);
org.apache.hadoop.mapred.JobID jId =
org.apache.hadoop.mapred.JobID.forName(jobIdString);
RunningJob rJob = jc.getJob(jId);
// Play with the rJob object as you want.

On Wed, Nov 28, 2012 at 10:59 PM, Pedro Sá da Costa <psdc1...@gmail.com> wrote:
> I have the jobId as a String, and from that I want to access the
> RunningJob API for that jobId. I think that it is only possible to
> access this API through the JobInProgress class, but maybe I'm wrong.
> Is this true?
>
>
> On 28 November 2012 17:24, Mahesh Balija <balijamahesh....@gmail.com> wrote:
>> Hi Pedro,
>>
>>           You can get the JobInProgress instance from JobTracker.
>>                  JobInProgress getJob(JobID jobid);
>>
>> Best,
>> Mahesh Balija,
>> Calsoft Labs.
>>
>> On Wed, Nov 28, 2012 at 10:41 PM, Pedro Sá da Costa <psdc1...@gmail.com>
>> wrote:
>>>
>>> I'm building a Java class and given a JobID, how can I get the
>>> JobInProgress? Can anyone give me an example?
>>>
>>> --
>>> Best regards,
>>
>>
>
>
>
> --
> Best regards,



-- 
Harsh J

Reply via email to