| 
 | ||||||||||
| 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(String fname)Create a new parser object and try to find the hostname of the node that generated the log | |
| Method Summary | |
|---|---|
|  String | getInfo()Return a String with information about this class | 
| protected  Calendar | parseDate(String strDate,
          String strTime)Parse a date found in the Hadoop log. | 
|  EventRecord | parseLine(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(String fname)
| Method Detail | 
|---|
public EventRecord parseLine(String line)
                      throws IOException
parseLine in class LogParserline - the log line to be parsed
IOException
protected Calendar parseDate(String strDate,
                             String strTime)
parseDate in class LogParserpublic String getInfo()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||