public class Hadoop20JHParser extends Object implements JobHistoryParser
JobHistoryParser to parse job histories for hadoop 0.20 (META=1).| 构造器和说明 |
|---|
Hadoop20JHParser(InputStream input) |
Hadoop20JHParser(LineReader reader) |
public Hadoop20JHParser(InputStream input) throws IOException
IOExceptionpublic Hadoop20JHParser(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 HistoryEvent nextEvent()
JobHistoryParserHistoryEventnextEvent 在接口中 JobHistoryParserHistoryEvent. If no more events left, return null.public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2009 The Apache Software Foundation