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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.errors.RegexErrorHeuristic
      extended by org.apache.hadoop.hive.ql.exec.errors.ScriptErrorHeuristic
All Implemented Interfaces:
ErrorHeuristic

public class ScriptErrorHeuristic
extends RegexErrorHeuristic

Detects when a query has failed because a user's script that was specified in transform returns a non-zero error code. Conditions to check: 1. "Script failed with code " is in the log


Constructor Summary
ScriptErrorHeuristic()
           
 
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

ScriptErrorHeuristic

public ScriptErrorHeuristic()
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.