Forráskód Böngészése

HADOOP-3774. Fix typos in shell output. Contributed by Tsz Wo (Nicholas), SZE.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.18@677713 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 17 éve
szülő
commit
075b4dae45

+ 3 - 0
CHANGES.txt

@@ -765,6 +765,9 @@ Release 0.18.0 - Unreleased
     HADOOP-3743. Fix -libjars, -files, -archives options to work even if
     user code does not implement tools. (Amareshwari Sriramadasu via mahadev)
 
+    HADOOP-3774. Fix typos in shell output. (Tsz Wo (Nicholas), SZE via
+    cdouglas)
+
 Release 0.17.2 - Unreleased
 
   BUG FIXES

+ 3 - 3
src/core/org/apache/hadoop/util/GenericOptionsParser.java

@@ -332,11 +332,11 @@ public class GenericOptionsParser {
     out.println("Generic options supported are");
     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 namenod");
+    out.println("-fs <local|namenode:port>      specify a namenode");
     out.println("-jt <local|jobtracker:port>    specify a job tracker");
-    out.println("-files <comma separated list of fiels>    " + 
+    out.println("-files <comma separated list of files>    " + 
       "specify comma separated files to be copied to the map reduce cluster");
-    out.println("-libjars <comma seperated list of jars>    " +
+    out.println("-libjars <comma separated list of jars>    " +
       "specify comma separated jar files to include in the classpath.");
     out.println("-archives <comma separated list of archives>    " +
                 "specify comma separated archives to be unarchived" +

+ 2 - 2
src/examples/org/apache/hadoop/examples/RandomTextWriter.java

@@ -77,14 +77,14 @@ import org.apache.hadoop.util.ToolRunner;
  * and ones supported by {@link Tool} via the command-line.
  * 
  * To run: bin/hadoop jar hadoop-${version}-examples.jar randomtextwriter
- *            [-outFormat <i>output format class</i>] <i>in-dir</i> 
+ *            [-outFormat <i>output format class</i>] <i>output</i> 
  */
 public class RandomTextWriter extends Configured implements Tool {
   
   static int printUsage() {
     System.out.println("randomtextwriter " +
                        "[-outFormat <output format class>] " + 
-                       "<input>");
+                       "<output>");
     ToolRunner.printGenericCommandUsage(System.out);
     return -1;
   }