public abstract class RegexErrorHeuristic extends java.lang.Object implements ErrorHeuristic
Constructor and Description |
---|
RegexErrorHeuristic() |
Modifier and Type | Method and Description |
---|---|
protected JobConf |
getConf() |
abstract ErrorAndSolution |
getErrorAndSolution()
Examine the hive query, job configuration, and the lines from the task log
seen so far though processLogLine() and generate a possible cause/solution.
|
protected java.util.Set<java.lang.String> |
getLogRegexes() |
protected boolean |
getQueryMatches() |
protected java.lang.String |
getQueryRegex() |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getRegexToLogLines() |
void |
init(java.lang.String query,
JobConf conf)
Initialize this error heuristic.
|
void |
processLogLine(java.lang.String line)
Process the given log line.
|
protected void |
reset()
Resets to state before any processLogLine() calls.
|
protected void |
setQueryRegex(java.lang.String queryRegex) |
protected void setQueryRegex(java.lang.String queryRegex)
protected java.lang.String getQueryRegex()
protected boolean getQueryMatches()
protected java.util.Set<java.lang.String> getLogRegexes()
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRegexToLogLines()
protected JobConf getConf()
public void init(java.lang.String query, JobConf conf)
ErrorHeuristic
init
in interface ErrorHeuristic
public abstract ErrorAndSolution getErrorAndSolution()
ErrorHeuristic
getErrorAndSolution
in interface ErrorHeuristic
public void processLogLine(java.lang.String line)
ErrorHeuristic
processLogLine
in interface ErrorHeuristic
protected void reset()
Copyright © 2012 The Apache Software Foundation