Author: szetszwo
Date: Tue May 5 16:40:11 2009
New Revision: 771913
URL: http://svn.apache.org/viewvc?rev=771913&view=rev
Log:
HADOOP-4674. Fix fs help messages for -test, -text, -tail, -stat and -touchz
options. Contributed by Ravi Phulari
Modified:
hadoop/core/branches/branch-0.20/CHANGES.txt
hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/fs/FsShell.java
Modified: hadoop/core/branches/branch-0.20/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/CHANGES.txt?rev=771913&r1=771912&r2=771913&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.20/CHANGES.txt Tue May 5 16:40:11 2009
@@ -17,6 +17,9 @@
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
Modified:
hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/fs/FsShell.java
URL:
http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/fs/FsShell.java?rev=771913&r1=771912&r2=771913&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/fs/FsShell.java
(original)
+++ hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/fs/FsShell.java
Tue May 5 16:40:11 2009
@@ -1335,12 +1335,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";
@@ -1449,6 +1448,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)) {
@@ -1484,6 +1485,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);