org.apache.hadoop.hive.ql.exec.errors
Class ScriptErrorHeuristic
java.lang.Object
org.apache.hadoop.hive.ql.exec.errors.RegexErrorHeuristic
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
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. |
ScriptErrorHeuristic
public ScriptErrorHeuristic()
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.