Is there a way to get the job configuration (some property from the configuration) if I know the job id?
Basically, what I'm doing is checking to see if there are any current jobs at the moment, and then I want to check if there is any value for the property in any of the current jobs that are in progress?
Part of the code to retrieve ongoing jobs:
JobConf jobConf = new JobConf(conf);
JobClient client = new JobClient(jobConf);
JobStatus[] status = client.getAllJobs();
for (int i = 0; i< status.length; i++)
{
if (!status[i].isJobComplete())
{
JobID jobid = status[i].getJobID();
System.out.println(jobid.toString());
}
}
Thanks in advance
source
share