public class JobLog extends AbstractProcessor
Modifier and Type | Class and Description |
---|---|
static class |
JobLog.CounterHash
Parse counter string to object
Example string:
{(org\.apache\.hadoop\.mapred\.JobInProgress$Counter)(Job Counters )
[(TOTAL_LAUNCHED_REDUCES)(Launched reduce tasks)(1)]
[(TOTAL_LAUNCHED_MAPS)(Launched map tasks)(14)]
[(DATA_LOCAL_MAPS)(Data-local map tasks)(14)]
}
{(FileSystemCounters)(FileSystemCounters)
[(FILE_BYTES_READ)(FILE_BYTES_READ)(132)]
[(HDFS_BYTES_READ)(HDFS_BYTES_READ)(20471)]
[(FILE_BYTES_WRITTEN)(FILE_BYTES_WRITTEN)(790)]
[(HDFS_BYTES_WRITTEN)(HDFS_BYTES_WRITTEN)(248)]
}
|
static class |
JobLog.JobLogLine |
archiveKey, chunk, key
Constructor and Description |
---|
JobLog() |
Modifier and Type | Method and Description |
---|---|
JobLog.JobLogLine |
getJobLogLine(String recordEntry)
Job logs could be split into multiple lines.
|
protected void |
parse(String recordEntry,
org.apache.hadoop.mapred.OutputCollector<ChukwaRecordKey,ChukwaRecord> output,
org.apache.hadoop.mapred.Reporter reporter) |
static ArrayList<String> |
split(String s,
String regex) |
buildGenericRecord, hasNext, nextLine, process, reset, saveChunkInError
public JobLog.JobLogLine getJobLogLine(String recordEntry)
protected void parse(String recordEntry, org.apache.hadoop.mapred.OutputCollector<ChukwaRecordKey,ChukwaRecord> output, org.apache.hadoop.mapred.Reporter reporter) throws Throwable
parse
in class AbstractProcessor
Throwable
Copyright © ${year} The Apache Software Foundation