hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject git commit: MAPREDUCE-5945. Update the description of GenericOptionsParser -jt option (Akira AJISAKA via aw)
Date Fri, 26 Sep 2014 21:26:44 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 e5d284664 -> 67d6fc3f0


MAPREDUCE-5945. Update the description of GenericOptionsParser -jt option (Akira AJISAKA via
aw)


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

Branch: refs/heads/branch-2
Commit: 67d6fc3f019cbd5494e54c1c45020c249dc98d10
Parents: e5d2846
Author: Allen Wittenauer <aw@apache.org>
Authored: Fri Sep 26 14:26:36 2014 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Fri Sep 26 14:26:36 2014 -0700

----------------------------------------------------------------------
 .../hadoop/util/GenericOptionsParser.java       | 28 ++++++++++----------
 .../src/site/apt/CommandsManual.apt.vm          |  2 +-
 hadoop-mapreduce-project/CHANGES.txt            |  3 +++
 .../mapred/pipes/TestPipeApplication.java       |  2 +-
 4 files changed, 19 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/67d6fc3f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
index 2a37dac..d0e7655 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
@@ -49,9 +49,9 @@ import org.apache.hadoop.security.UserGroupInformation;
  * <code>GenericOptionsParser</code> is a utility to parse command line
  * arguments generic to the Hadoop framework. 
  * 
- * <code>GenericOptionsParser</code> recognizes several standarad command 
+ * <code>GenericOptionsParser</code> recognizes several standard command
  * line arguments, enabling applications to easily specify a namenode, a 
- * jobtracker, additional configuration resources etc.
+ * ResourceManager, additional configuration resources etc.
  * 
  * <h4 id="GenericOptions">Generic Options</h4>
  * 
@@ -60,7 +60,7 @@ import org.apache.hadoop.security.UserGroupInformation;
  *     -conf &lt;configuration file&gt;     specify a configuration file
  *     -D &lt;property=value&gt;            use value for given property
  *     -fs &lt;local|namenode:port&gt;      specify a namenode
- *     -jt &lt;local|jobtracker:port&gt;    specify a job tracker
+ *     -jt &lt;local|resourcemanager:port&gt;    specify a ResourceManager
  *     -files &lt;comma separated list of files&gt;    specify comma separated
  *                            files to be copied to the map reduce cluster
  *     -libjars &lt;comma separated list of jars&gt;   specify comma separated
@@ -90,13 +90,13 @@ import org.apache.hadoop.security.UserGroupInformation;
  *     
  * $ bin/hadoop dfs -conf core-site.xml -conf hdfs-site.xml -ls /data
  * list /data directory in dfs with multiple conf files specified.
- *     
- * $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
- * submit a job to job tracker darwin:50020
- *     
- * $ bin/hadoop job -jt darwin:50020 -submit job.xml
- * submit a job to job tracker darwin:50020
- *     
+ *
+ * $ bin/hadoop job -D yarn.resourcemanager.address=darwin:8032 -submit job.xml
+ * submit a job to ResourceManager darwin:8032
+ *
+ * $ bin/hadoop job -jt darwin:8032 -submit job.xml
+ * submit a job to ResourceManager darwin:8032
+ *
  * $ bin/hadoop job -jt local -submit job.xml
  * submit a job to local runner
  * 
@@ -213,9 +213,9 @@ public class GenericOptionsParser {
     .hasArg()
     .withDescription("specify a namenode")
     .create("fs");
-    Option jt = OptionBuilder.withArgName("local|jobtracker:port")
+    Option jt = OptionBuilder.withArgName("local|resourcemanager:port")
     .hasArg()
-    .withDescription("specify a job tracker")
+    .withDescription("specify a ResourceManager")
     .create("jt");
     Option oconf = OptionBuilder.withArgName("configuration file")
     .hasArg()
@@ -408,7 +408,7 @@ public class GenericOptionsParser {
       else {
         // check if the file exists in this file system
         // we need to recreate this filesystem object to copy
-        // these files to the file system jobtracker is running
+        // these files to the file system ResourceManager is running
         // on.
         FileSystem fs = path.getFileSystem(conf);
         if (!fs.exists(path)) {
@@ -502,7 +502,7 @@ public class GenericOptionsParser {
     out.println("-conf <configuration file>     specify an application configuration
file");
     out.println("-D <property=value>            use value for given property");
     out.println("-fs <local|namenode:port>      specify a namenode");
-    out.println("-jt <local|jobtracker:port>    specify a job tracker");
+    out.println("-jt <local|resourcemanager:port>    specify a ResourceManager");
     out.println("-files <comma separated list of files>    " + 
       "specify comma separated files to be copied to the map reduce cluster");
     out.println("-libjars <comma separated list of jars>    " +

http://git-wip-us.apache.org/repos/asf/hadoop/blob/67d6fc3f/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm b/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm
index a03dd03..1608691 100644
--- a/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm
+++ b/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm
@@ -56,7 +56,7 @@ Generic Options
 *------------------------------------------------+-----------------------------+
 |<<<-D \<property\>=\<value\> >>>                | Use value
for given property.
 *------------------------------------------------+-----------------------------+
-|<<<-jt \<local\> or \<jobtracker:port\> >>>     | Specify
a job tracker.
+|<<<-jt \<local\> or \<resourcemanager:port\>>>> | Specify
a ResourceManager.
                                                  | Applies only to job.
 *------------------------------------------------+-----------------------------+
 |<<<-files \<comma separated list of files\> >>> | Specify comma
separated files

http://git-wip-us.apache.org/repos/asf/hadoop/blob/67d6fc3f/hadoop-mapreduce-project/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt
index 34111a0..462e370 100644
--- a/hadoop-mapreduce-project/CHANGES.txt
+++ b/hadoop-mapreduce-project/CHANGES.txt
@@ -168,6 +168,9 @@ Release 2.6.0 - UNRELEASED
     MAPREDUCE-5796. Use current version of the archive name in 
     DistributedCacheDeploy document (Akira AJISAKA via aw)
 
+    MAPREDUCE-5945. Update the description of GenericOptionsParser -jt 
+    option (Akira AJISAKA via aw)
+
 Release 2.5.1 - 2014-09-05
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/67d6fc3f/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java
index f447ebc..c2a990e 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java
@@ -308,7 +308,7 @@ public class TestPipeApplication {
       assertTrue(out.toString().contains(
               "-fs <local|namenode:port>      specify a namenode"));
       assertTrue(out.toString().contains(
-              "-jt <local|jobtracker:port>    specify a job tracker"));
+              "-jt <local|ResourceManager:port>    specify a ResourceManager"));
       assertTrue(out
               .toString()
               .contains(


Mime
View raw message