首页 > 代码库 > java.io.IOException: Job status not available

java.io.IOException: Job status not available

2014-04-20 21:57:24,544 INFO  [main] mapred.ClientServiceDelegate (ClientServiceDelegate.java:getProxy(270)) - Application state is completed. FinalApplicationStatus=SUCCEEDED. Redirecting to job history serverjava.io.IOException: Job status not available     at org.apache.hadoop.mapreduce.Job.updateStatus(Job.java:322)    at org.apache.hadoop.mapreduce.Job.isComplete(Job.java:599)    at org.apache.hadoop.mapreduce.Job.monitorAndPrintJob(Job.java:1327)    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1289)    at com.zetaris.hadoop.seek.preprocess.PreProcessorDriver.executeJobs(PreProcessorDriver.java:112)    at com.zetaris.hadoop.seek.JobToJobMatchingDriver.executePreProcessJob(JobToJobMatchingDriver.java:143)    at com.zetaris.hadoop.seek.JobToJobMatchingDriver.executeJobs(JobToJobMatchingDriver.java:78)    at com.zetaris.hadoop.seek.JobToJobMatchingDriver.executeJobs(JobToJobMatchingDriver.java:43)    at com.zetaris.hadoop.seek.JobToJobMatchingDriver.main(JobToJobMatchingDriver.java:56)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.hadoop.util.RunJar.main(RunJar.java:212


对于以上异常,client编写中需要增加以下配置

  conf.set("mapreduce.jobhistory.address", "hadoop3.hwdomain:10020");
  conf.set("mapreduce.jobhistory.intermediate-done-dir", "/mr-history/tmp");
  conf.set("mapreduce.jobhistory.done-dir", "/mr-history/done");