I guess the reason is that it assumes it can't write history files after that point, and skips the rest of the work?
On Sat, Sep 15, 2012 at 3:07 AM, Prashant Kommireddi <[email protected]> wrote: > Hi All, > > I have a question about job history logging. Seems like history logging is > disabled if file creation fails, is there a reason this is done? > The following snippet is from JobHistory.JobInfo.logSubmitted(....) - > Hadoop 0.20.2 > > > // Log the history meta info > JobHistory.MetaInfoManager.logMetaInfo(writers); > > //add to writer as well > JobHistory.log(writers, RecordTypes.Job, > new Keys[]{Keys.JOBID, Keys.JOBNAME, Keys.USER, > Keys.SUBMIT_TIME, Keys.JOBCONF }, > new String[]{jobId.toString(), jobName, user, > String.valueOf(submitTime) , > jobConfPath} > ); > > }catch(IOException e){ > LOG.error("Failed creating job history log file, disabling > history", e); > *disableHistory = true; * > } > } > > > Thanks, -- Harsh J
