org.apache.hadoop.hive.ql.exec.errors
Class DataCorruptErrorHeuristic
java.lang.Object
org.apache.hadoop.hive.ql.exec.errors.RegexErrorHeuristic
org.apache.hadoop.hive.ql.exec.errors.DataCorruptErrorHeuristic
- All Implemented Interfaces:
- ErrorHeuristic
public class DataCorruptErrorHeuristic
- extends RegexErrorHeuristic
Detects the condition where there is a error with one of the input files in
the query.
Conditions to check:
1. EOFException in log
2. A line indicating the split file in the log. This is needed to
generate the proper error message.
Method Summary |
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. |
DataCorruptErrorHeuristic
public DataCorruptErrorHeuristic()
getErrorAndSolution
public ErrorAndSolution getErrorAndSolution()
- Description copied from interface:
ErrorHeuristic
- Examine the hive query, job configuration, and the lines from the task log
seen so far though processLogLine() and generate a possible cause/solution.
Once this method is called, the implementing class should be reset to the
state before any processLogLine() calls were made.
- Specified by:
getErrorAndSolution
in interface ErrorHeuristic
- Specified by:
getErrorAndSolution
in class RegexErrorHeuristic
- Returns:
- a matching error, or null if a suitable match wasn't found.
Copyright © 2014 The Apache Software Foundation. All rights reserved.