|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.contrib.failmon.LogParser
org.apache.hadoop.contrib.failmon.HadoopLogParser
public class HadoopLogParser
An object of this class parses a Hadoop log file to create appropriate EventRecords. The log file can either be the log of a NameNode or JobTracker or DataNode or TaskTracker.
Constructor Summary | |
---|---|
HadoopLogParser(java.lang.String fname)
Create a new parser object and try to find the hostname of the node that generated the log |
Method Summary | |
---|---|
java.lang.String |
getInfo()
Return a String with information about this class |
protected java.util.Calendar |
parseDate(java.lang.String strDate,
java.lang.String strTime)
Parse a date found in the Hadoop log. |
EventRecord |
parseLine(java.lang.String line)
Parses one line of the log. |
Methods inherited from class org.apache.hadoop.contrib.failmon.LogParser |
---|
checkForRotation, getNext, getReader, monitor, monitor, setNetworkProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HadoopLogParser(java.lang.String fname)
Method Detail |
---|
public EventRecord parseLine(java.lang.String line) throws java.io.IOException
parseLine
in class LogParser
line
- the log line to be parsed
java.io.IOException
protected java.util.Calendar parseDate(java.lang.String strDate, java.lang.String strTime)
parseDate
in class LogParser
public java.lang.String getInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |