@InterfaceAudience.Public
@InterfaceStability.Stable
public class CLI
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Field and Description |
|---|---|
protected Cluster |
cluster |
static String |
dataPattern |
static String |
headerPattern |
| Constructor and Description |
|---|
CLI() |
CLI(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayJobList(JobStatus[] jobs) |
void |
displayJobList(JobStatus[] jobs,
PrintWriter writer) |
protected void |
displayTasks(Job job,
String type,
String state)
Display the information about a job's tasks, of a particular type and
in a particular state
|
protected long |
getCounter(Counters counters,
String counterGroupName,
String counterName) |
protected static String |
getTaskLogURL(TaskAttemptID taskId,
String baseUrl) |
static void |
main(String[] argv) |
int |
run(String[] argv) |
protected Cluster cluster
@InterfaceAudience.Private public static String headerPattern
@InterfaceAudience.Private public static String dataPattern
public int run(String[] argv) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionprotected long getCounter(Counters counters, String counterGroupName, String counterName) throws IOException
IOExceptionprotected static String getTaskLogURL(TaskAttemptID taskId, String baseUrl)
protected void displayTasks(Job job, String type, String state) throws IOException, InterruptedException
job - the jobtype - the type of the task (map/reduce/setup/cleanup)state - the state of the task
(pending/running/completed/failed/killed)IOException - when there is an error communicating with the masterInterruptedExceptionIllegalArgumentException - if an invalid type/state is passedpublic void displayJobList(JobStatus[] jobs) throws IOException, InterruptedException
IOExceptionInterruptedException@InterfaceAudience.Private public void displayJobList(JobStatus[] jobs, PrintWriter writer)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.