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)
ErrorHeuristicinit in interface ErrorHeuristicpublic abstract ErrorAndSolution getErrorAndSolution()
ErrorHeuristicgetErrorAndSolution in interface ErrorHeuristicpublic void processLogLine(String line)
ErrorHeuristicprocessLogLine in interface ErrorHeuristicprotected void reset()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.