hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Conwell <j...@iamjohn.me>
Subject Re: How to get JobID in code?
Date Tue, 06 Sep 2011 14:55:39 GMT
You can override the configure method in you mapper or reducer, and call

JobConf.get("xpatterns.hadoop.content.job.id")

This will return you the UUID for the job id

On Mon, Sep 5, 2011 at 10:02 PM, Meghana <meghana.marathe@germinait.com>wrote:

> Hi,
>
> We configure a org.apache.hadoop.mapreduce.Job, and then call job.submit().
> The job starts running on the cluster. At this point, we need to log/store
> the job id of the submitted job. But calling job.getJobID() returns null,
> for our instance of the job! Is there another way to do this?
>
> We recently shifted to using 0.20.203. job.getJobID() used to work in
> 0.19....
>
> Thanks,
>
> Meghana
>



-- 

Thanks,
John C

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message