Browse Source

HADOOP-4674. Fix fs help messages for -test, -text, -tail, -stat and -touchz options. Contributed by Ravi Phulari

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20@771913 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 16 years ago
parent
commit
4ad0f18e7d
2 changed files with 15 additions and 6 deletions
  1. 3 0
      CHANGES.txt
  2. 12 6
      src/core/org/apache/hadoop/fs/FsShell.java

+ 3 - 0
CHANGES.txt

@@ -17,6 +17,9 @@ Release 0.20.1 - Unreleased
     like memory based scheduling, job initialization and removal of pre-emption.
     (Sreekanth Ramakrishnan via yhemanth)
 
+    HADOOP-4674. Fix fs help messages for -test, -text, -tail, -stat 
+    and -touchz options.  (Ravi Phulari via szetszwo)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 12 - 6
src/core/org/apache/hadoop/fs/FsShell.java

@@ -1335,12 +1335,11 @@ public class FsShell extends Configured implements Tool {
     String cat = "-cat <src>: \tFetch all files that match the file pattern <src> \n" +
       "\t\tand display their content on stdout.\n";
 
-    /*
-    String text = "-text <path>: Attempt to decode contents if the first few bytes\n" +
-      "\t\tmatch a magic number associated with a known format\n" +
-      "\t\t(gzip, SequenceFile)\n";
-    */
-
+    
+    String text = "-text <src>: \tTakes a source file and outputs the file in text format.\n" +
+      "\t\tThe allowed formats are zip and TextRecordInputStream.\n";
+         
+    
     String copyToLocal = COPYTOLOCAL_SHORT_USAGE
                          + ":  Identical to the -get command.\n";
 
@@ -1449,6 +1448,8 @@ public class FsShell extends Configured implements Tool {
       System.out.println(touchz);
     } else if ("test".equals(cmd)) {
       System.out.println(test);
+    } else if ("text".equals(cmd)) {
+      System.out.println(text);
     } else if ("stat".equals(cmd)) {
       System.out.println(stat);
     } else if ("tail".equals(cmd)) {
@@ -1484,6 +1485,11 @@ public class FsShell extends Configured implements Tool {
       System.out.println(moveToLocal);
       System.out.println(mkdir);
       System.out.println(setrep);
+      System.out.println(tail);
+      System.out.println(touchz);
+      System.out.println(test);
+      System.out.println(text);
+      System.out.println(stat);
       System.out.println(chmod);
       System.out.println(chown);      
       System.out.println(chgrp);