I am Running hadoop jobs in local mode i.e jobs are running in single JVM of linux machine. When I try to kill the running jobs using JobClient then the RunningJob object is returning null. Below is the code which I am using:
**String jobDetails="job_local65122045_0001";
JobID jobID = JobID.forName(jobDetails);
JobClient jobClient = new JobClient(conf);
RunningJob runningJob = jobClient.getJob(jobId);**
I am getting RunningJob object as null though the job is running.However, I am successfully able to get the RunningJob object incase of hadoop Jobs.
Could anyone please help to fix the problem.