hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Kommireddi <prash1...@gmail.com>
Subject Job history logging
Date Fri, 14 Sep 2012 21:37:27 GMT
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,

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message