org.apache.hadoop.mapred
Class DefaultJobHistoryParser
java.lang.Object
org.apache.hadoop.mapred.DefaultJobHistoryParser
public class DefaultJobHistoryParser
- extends Object
Default parser for job history files. It creates object model from
job history file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJobHistoryParser
public DefaultJobHistoryParser()
parseMasterIndex
public static Map<String,Map<String,JobHistory.JobInfo>> parseMasterIndex(File historyFile)
throws IOException
- Parses a master index file and returns a Map of
(jobTrakerId - Map (job Id - JobHistory.JobInfo)).
- Parameters:
historyFile
- master index history file.
- Returns:
- a map of values, as described as described earlier.
- Throws:
IOException
parseJobTasks
public static void parseJobTasks(File jobHistoryFile,
JobHistory.JobInfo job)
throws IOException
- Populates a JobInfo object from the job's history log file.
- Parameters:
jobHistoryFile
- history file for this job.job
- a precreated JobInfo object, should be non-null.
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation