Przeglądaj źródła

HADOOP-6314. Fix "fs -help" for the "-count" commond. Contributed by Ravi Phulari

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@836019 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 15 lat temu
rodzic
commit
cdcb8514a0
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/fs/FsShell.java

+ 3 - 0
CHANGES.txt

@@ -45,6 +45,9 @@ Trunk (unreleased changes)
 
     HADOOP-6341. Fix test-patch.sh for checkTests function. (gkesavan)
 
+    HADOOP-6314. Fix "fs -help" for the "-count" commond.  (Ravi Phulari via
+    szetszwo)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/java/org/apache/hadoop/fs/FsShell.java

@@ -1568,7 +1568,7 @@ public class FsShell extends Configured implements Tool {
       System.out.println(chown);
     } else if ("chgrp".equals(cmd)) {
       System.out.println(chgrp);
-    } else if (Count.matches(cmd)) {
+    } else if (Count.NAME.equals(cmd)) {
       System.out.println(Count.DESCRIPTION);
     } else if ("help".equals(cmd)) {
       System.out.println(help);