public class Hadoop20JHParser extends Object implements JobHistoryParser
JobHistoryParser to parse job histories for hadoop 0.20 (META=1).| Constructor and Description |
|---|
Hadoop20JHParser(InputStream input) |
Hadoop20JHParser(org.apache.hadoop.util.LineReader reader) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canParse(InputStream input)
Can this parser parse the input?
|
void |
close() |
org.apache.hadoop.mapreduce.jobhistory.HistoryEvent |
nextEvent()
Get the next
HistoryEvent |
public Hadoop20JHParser(InputStream input) throws IOException
IOExceptionpublic Hadoop20JHParser(org.apache.hadoop.util.LineReader reader)
throws IOException
IOExceptionpublic static boolean canParse(InputStream input) throws IOException
input - IOException - We will deem a stream to be a good 0.20 job history stream if the
first line is exactly "Meta VERSION=\"1\" ."public org.apache.hadoop.mapreduce.jobhistory.HistoryEvent nextEvent()
JobHistoryParserHistoryEventnextEvent in interface JobHistoryParserHistoryEvent. If no more events left, return null.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.