org.apache.hadoop.hive.ql.exec.errors
Class DataCorruptErrorHeuristic

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.errors.RegexErrorHeuristic
      extended by 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.


Constructor Summary
DataCorruptErrorHeuristic()
           
 
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.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.errors.RegexErrorHeuristic
init, processLogLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataCorruptErrorHeuristic

public DataCorruptErrorHeuristic()
Method Detail

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.