hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: MAPREDUCE-6479. Add missing mapred job command options in mapreduce document. Contributed by nijel.
Date Fri, 09 Oct 2015 02:05:59 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk b4390d5ab -> 584cf3bb3


MAPREDUCE-6479. Add missing mapred job command options in mapreduce document. Contributed
by nijel.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/584cf3bb
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/584cf3bb
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/584cf3bb

Branch: refs/heads/trunk
Commit: 584cf3bb35b96749f711b9e7145cf3fb71897cd9
Parents: b4390d5
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Fri Oct 9 10:54:12 2015 +0900
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Fri Oct 9 10:54:12 2015 +0900

----------------------------------------------------------------------
 hadoop-mapreduce-project/CHANGES.txt                           | 3 +++
 .../src/main/java/org/apache/hadoop/mapreduce/tools/CLI.java   | 2 +-
 .../src/site/markdown/MapredCommands.md                        | 6 +++++-
 3 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/584cf3bb/hadoop-mapreduce-project/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt
index 115993f..bcebce48 100644
--- a/hadoop-mapreduce-project/CHANGES.txt
+++ b/hadoop-mapreduce-project/CHANGES.txt
@@ -396,6 +396,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

http://git-wip-us.apache.org/repos/asf/hadoop/blob/584cf3bb/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/tools/CLI.java
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/tools/CLI.java
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/tools/CLI.java
index a350829..2feb0d1 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/tools/CLI.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/tools/CLI.java
@@ -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>]");

http://git-wip-us.apache.org/repos/asf/hadoop/blob/584cf3bb/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md
index 0a3c491..fd695b2 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md
@@ -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`
 


Mime
View raw message