@InterfaceAudience.Private @InterfaceStability.Unstable public class HistoryViewer extends Object
HistoryViewerPrinter.| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HUMAN_FORMAT |
static String |
JSON_FORMAT |
| Constructor and Description |
|---|
HistoryViewer(String historyFile,
org.apache.hadoop.conf.Configuration conf,
boolean printAll)
Constructs the HistoryViewer object.
|
HistoryViewer(String historyFile,
org.apache.hadoop.conf.Configuration conf,
boolean printAll,
String format)
Constructs the HistoryViewer object.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getTaskLogsUrl(String scheme,
JobHistoryParser.TaskAttemptInfo attempt)
Return the TaskLogsUrl of a particular TaskAttempt.
|
void |
print()
Print the job/task/attempt summary information to stdout.
|
void |
print(PrintStream ps)
Print the job/task/attempt summary information to the PrintStream.
|
public static final String HUMAN_FORMAT
public static final String JSON_FORMAT
public HistoryViewer(String historyFile, org.apache.hadoop.conf.Configuration conf, boolean printAll) throws IOException
historyFile - the fully qualified Path of the History Fileconf - the Configuration fileprintAll - toggle to print all status to only killed/failed statusIOException - when there is a problem parsing the history filepublic HistoryViewer(String historyFile, org.apache.hadoop.conf.Configuration conf, boolean printAll, String format) throws IOException
historyFile - the fully qualified Path of the History Fileconf - the Configuration fileprintAll - toggle to print all status to only killed/failed statusformat - the output format to useIOException - when there is a problem parsing the history filepublic void print()
throws IOException
IOException - when there is a problem printing the historypublic void print(PrintStream ps) throws IOException
ps - The PrintStream to print toIOException - when there is a problem printing the historypublic static String getTaskLogsUrl(String scheme, JobHistoryParser.TaskAttemptInfo attempt)
attempt - info about the task attemptCopyright © 2008–2022 Apache Software Foundation. All rights reserved.