hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r768376 - in /hadoop/core/trunk: CHANGES.txt src/core/org/apache/hadoop/fs/FsShell.java
Date Fri, 24 Apr 2009 17:26:47 GMT
Author: szetszwo
Date: Fri Apr 24 17:26:47 2009
New Revision: 768376

URL: http://svn.apache.org/viewvc?rev=768376&view=rev
Log:
HADOOP-4674. Fix fs help messages for -test, -text, -tail, -stat and -touchz options.  Contributed
by Ravi Phulari

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/core/org/apache/hadoop/fs/FsShell.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=768376&r1=768375&r2=768376&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Apr 24 17:26:47 2009
@@ -470,6 +470,9 @@
     HADOOP-5688. Fix HftpFileSystem checksum path construction. (Tsz Wo
     (Nicholas) Sze via cdouglas)
 
+    HADOOP-4674. Fix fs help messages for -test, -text, -tail, -stat 
+    and -touchz options.  (Ravi Phulari via szetszwo)
+
 Release 0.20.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/core/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/core/org/apache/hadoop/fs/FsShell.java?rev=768376&r1=768375&r2=768376&view=diff
==============================================================================
--- hadoop/core/trunk/src/core/org/apache/hadoop/fs/FsShell.java (original)
+++ hadoop/core/trunk/src/core/org/apache/hadoop/fs/FsShell.java Fri Apr 24 17:26:47 2009
@@ -1364,12 +1364,11 @@
     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";
 
@@ -1481,6 +1480,8 @@
       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)) {
@@ -1517,6 +1518,11 @@
       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);



Mime
View raw message