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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor

public class TaskLogProcessor
extends Object

TaskLogProcessor reads the logs from failed task attempts and tries to figure out what the cause of the error was using various heuristics.


Constructor Summary
TaskLogProcessor(org.apache.hadoop.mapred.JobConf conf)
           
 
Method Summary
 void addTaskAttemptLogUrl(String url)
          Adds a task log URL for the heuristics to read through.
 List<ErrorAndSolution> getErrors()
          Processes the provided task logs using the known error heuristics to get the matching errors.
 List<List<String>> getStackTraces()
          Processes the provided task logs to extract stack traces.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskLogProcessor

public TaskLogProcessor(org.apache.hadoop.mapred.JobConf conf)
Method Detail

addTaskAttemptLogUrl

public void addTaskAttemptLogUrl(String url)
Adds a task log URL for the heuristics to read through.

Parameters:
url -

getErrors

public List<ErrorAndSolution> getErrors()
Processes the provided task logs using the known error heuristics to get the matching errors.

Returns:
A ErrorAndSolution from the ErrorHeuristic that most frequently generated matches. In case of ties, multiple ErrorAndSolutions will be returned.

getStackTraces

public List<List<String>> getStackTraces()
Processes the provided task logs to extract stack traces.

Returns:
A list of lists of strings where each list of strings represents a stack trace


Copyright © 2014 The Apache Software Foundation. All rights reserved.