When submitting a Job instance, you can get information about the job ID using the getJobID method:
Configuration config = new Configuration(); Job job = new Job(config);
Note that there was an error described in MAPREDUCE-118 that affected Hadoop versions prior to 0.20.204, where getJobID returned only null .
source share