|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
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. |
void |
init(String query,
org.apache.hadoop.mapred.JobConf conf)
Initialize this error heuristic. |
void |
processLogLine(String line)
Process the given log line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexErrorHeuristic()
Method Detail |
---|
public void init(String query, org.apache.hadoop.mapred.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |