MAPREDUCE-6479. Add missing mapred job command options in mapreduce document. Contributed by nijel.
(cherry picked from commit 584cf3bb35
)
This commit is contained in:
parent
ec74b0cd4e
commit
22ff37f5ce
|
@ -124,6 +124,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HADOOP-12428. Fix inconsistency between log-level guards and statements.
|
||||
(Jagadesh Kiran N and Jackie Chang via ozawa)
|
||||
|
||||
MAPREDUCE-6479. Add missing mapred job command options in mapreduce
|
||||
document. (nijel via aajisaka)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
MAPREDUCE-6376. Add avro binary support for jhist files (Ray Chiang via
|
||||
|
|
|
@ -423,7 +423,7 @@ public class CLI extends Configured implements Tool {
|
|||
private void displayUsage(String cmd) {
|
||||
String prefix = "Usage: job ";
|
||||
String jobPriorityValues = getJobPriorityNames();
|
||||
String taskStates = "running, completed";
|
||||
String taskStates = "pending, running, completed, failed, killed";
|
||||
|
||||
if ("-submit".equals(cmd)) {
|
||||
System.err.println(prefix + "[" + cmd + " <job-file>]");
|
||||
|
|
|
@ -74,7 +74,7 @@ Copy file or directories recursively. More information can be found at
|
|||
|
||||
Command to interact with Map Reduce Jobs.
|
||||
|
||||
Usage: `mapred job | [GENERIC_OPTIONS] | [-submit <job-file>] | [-status <job-id>] | [-counter <job-id> <group-name> <counter-name>] | [-kill <job-id>] | [-events <job-id> <from-event-#> <#-of-events>] | [-history [all] <jobOutputDir>] | [-list [all]] | [-kill-task <task-id>] | [-fail-task <task-id>] | [-set-priority <job-id> <priority>]`
|
||||
Usage: `mapred job | [GENERIC_OPTIONS] | [-submit <job-file>] | [-status <job-id>] | [-counter <job-id> <group-name> <counter-name>] | [-kill <job-id>] | [-events <job-id> <from-event-#> <#-of-events>] | [-history [all] <jobOutputDir>] | [-list [all]] | [-kill-task <task-id>] | [-fail-task <task-id>] | [-set-priority <job-id> <priority>] | [-list-active-trackers] | [-list-blacklisted-trackers] | [-list-attempt-ids <job-id> <task-type> <task-state>] [-logs <job-id> <task-attempt-id>]`
|
||||
|
||||
| COMMAND\_OPTION | Description |
|
||||
|:---- |:---- |
|
||||
|
@ -88,6 +88,10 @@ Usage: `mapred job | [GENERIC_OPTIONS] | [-submit <job-file>] | [-status <job-id
|
|||
| -kill-task *task-id* | Kills the task. Killed tasks are NOT counted against failed attempts. |
|
||||
| -fail-task *task-id* | Fails the task. Failed tasks are counted against failed attempts. |
|
||||
| -set-priority *job-id* *priority* | Changes the priority of the job. Allowed priority values are VERY\_HIGH, HIGH, NORMAL, LOW, VERY\_LOW |
|
||||
| -list-active-trackers | List all the active NodeManagers in the cluster. |
|
||||
| -list-blacklisted-trackers | List the black listed task trackers in the cluster. This command is not supported in MRv2 based cluster. |
|
||||
| -list-attempt-ids *job-id* *task-type* *task-state* | List the attempt-ids based on the task type and the status given. Valid values for task-type are REDUCE, MAP. Valid values for task-state are running, pending, completed, failed, killed. |
|
||||
| -logs *job-id* *task-attempt-id* | Dump the container log for a job if taskAttemptId is not specified, otherwise dump the log for the task with the specified taskAttemptId. The logs will be dumped in system out. |
|
||||
|
||||
### `pipes`
|
||||
|
||||
|
|
Loading…
Reference in New Issue