|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.errors.RegexErrorHeuristic
public abstract class RegexErrorHeuristic
Simple heuristic where the query and the lines of the task log file are run through regular expressions to see if they resemble a known error condition. Only a single regular expression can be supplied to match the query whereas multiple regular expressions can be supplied to match lines from the log file. A mapping is maintained from the regular expression to the lines from the log file that it matched.
Constructor Summary | |
---|---|
RegexErrorHeuristic()
|
Method Summary | |
---|---|
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 Set<String> |
getLogRegexes()
|
protected boolean |
getQueryMatches()
|
protected String |
getQueryRegex()
|
protected Map<String,List<String>> |
getRegexToLogLines()
|
void |
init(String query,
JobConf conf)
Initialize this error heuristic. |
void |
processLogLine(String line)
Process the given log line. |
protected void |
reset()
Resets to state before any processLogLine() calls. |
protected void |
setQueryRegex(String queryRegex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexErrorHeuristic()
Method Detail |
---|
protected void setQueryRegex(String queryRegex)
protected String getQueryRegex()
protected boolean getQueryMatches()
protected Set<String> getLogRegexes()
protected Map<String,List<String>> getRegexToLogLines()
protected JobConf getConf()
public void init(String query, JobConf conf)
ErrorHeuristic
init
in interface ErrorHeuristic
public abstract ErrorAndSolution getErrorAndSolution()
ErrorHeuristic
getErrorAndSolution
in interface ErrorHeuristic
public void processLogLine(String line)
ErrorHeuristic
processLogLine
in interface ErrorHeuristic
protected void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |