|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser
@InterfaceAudience.Private @InterfaceStability.Unstable public class JobHistoryParser
Default Parser for the JobHistory files. Typical usage is JobHistoryParser parser = new JobHistoryParser(fs, historyFile); job = parser.parse();
Nested Class Summary | |
---|---|
static class |
JobHistoryParser.AMInfo
Stores AM information |
static class |
JobHistoryParser.JobInfo
The class where job information is aggregated into after parsing |
static class |
JobHistoryParser.TaskAttemptInfo
Task Attempt Information is aggregated in this class after parsing |
static class |
JobHistoryParser.TaskInfo
TaskInformation is aggregated in this class after parsing |
Constructor Summary | |
---|---|
JobHistoryParser(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path historyFile)
Create the job history parser for the given history file using the given file system |
|
JobHistoryParser(org.apache.hadoop.fs.FileSystem fs,
String file)
Create a job history parser for the given history file using the given file system |
|
JobHistoryParser(org.apache.hadoop.fs.FSDataInputStream in)
Create the history parser based on the input stream |
Method Summary | |
---|---|
IOException |
getParseException()
Get the parse exception, if any. |
JobHistoryParser.JobInfo |
parse()
Parse the entire history file and populate the JobInfo object The first invocation will populate the object, subsequent calls will return the already parsed object. |
JobHistoryParser.JobInfo |
parse(EventReader reader)
Only used for unit tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobHistoryParser(org.apache.hadoop.fs.FileSystem fs, String file) throws IOException
fs
- file
-
IOException
public JobHistoryParser(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path historyFile) throws IOException
fs
- historyFile
-
IOException
public JobHistoryParser(org.apache.hadoop.fs.FSDataInputStream in)
in
- Method Detail |
---|
public JobHistoryParser.JobInfo parse() throws IOException
getParseException()
can be used to fetch the exception, if any.
IOException
getParseException()
@InterfaceAudience.Private public JobHistoryParser.JobInfo parse(EventReader reader) throws IOException
IOException
public IOException getParseException()
parse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |