org.apache.hadoop.mapreduce.jobhistory
Class HistoryViewer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.jobhistory.HistoryViewer

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class HistoryViewer
extends Object

HistoryViewer is used to parse and view the JobHistory files


Nested Class Summary
static class HistoryViewer.AnalyzedJob
          Utility class used while analyzing the job.
static class HistoryViewer.FilteredJob
          Utility to filter out events based on the task status
static class HistoryViewer.SummarizedJob
          Utility class used the summarize the job.
 
Constructor Summary
HistoryViewer(String historyFile, org.apache.hadoop.conf.Configuration conf, boolean printAll)
          Constructs the HistoryViewer object
 
Method Summary
static String getTaskLogsUrl(JobHistoryParser.TaskAttemptInfo attempt)
          Return the TaskLogsUrl of a particular TaskAttempt
 void print()
          Print the job/task/attempt summary information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryViewer

public HistoryViewer(String historyFile,
                     org.apache.hadoop.conf.Configuration conf,
                     boolean printAll)
              throws IOException
Constructs the HistoryViewer object

Parameters:
historyFile - The fully qualified Path of the History File
conf - The Configuration file
printAll - Toggle to print all status to only killed/failed status
Throws:
IOException
Method Detail

print

public void print()
           throws IOException
Print the job/task/attempt summary information

Throws:
IOException

getTaskLogsUrl

public static String getTaskLogsUrl(JobHistoryParser.TaskAttemptInfo attempt)
Return the TaskLogsUrl of a particular TaskAttempt

Parameters:
attempt -
Returns:
the taskLogsUrl. null if http-port or tracker-name or task-attempt-id are unavailable.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.