public abstract class RegexErrorHeuristic extends Object implements ErrorHeuristic
Constructor and Description |
---|
RegexErrorHeuristic() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.mapred.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,
org.apache.hadoop.mapred.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) |
protected void setQueryRegex(String queryRegex)
protected String getQueryRegex()
protected boolean getQueryMatches()
protected org.apache.hadoop.mapred.JobConf getConf()
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
protected void reset()
Copyright © 2017 The Apache Software Foundation. All rights reserved.