Browse Source

HADOOP-4855. Fixed command-specific help messages for refreshServiceAcl in DFSAdmin and MRAdmin.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@725950 13f79535-47bb-0310-9956-ffa450edef68
Arun Murthy 16 năm trước cách đây
mục cha
commit
7def8269ab

+ 3 - 0
CHANGES.txt

@@ -363,6 +363,9 @@ Trunk (unreleased changes)
     HADOOP-4706. Close the underlying output stream in
     HADOOP-4706. Close the underlying output stream in
     IFileOutputStream::close. (Jothi Padmanabhan via cdouglas)
     IFileOutputStream::close. (Jothi Padmanabhan via cdouglas)
 
 
+    HADOOP-4855. Fixed command-specific help messages for refreshServiceAcl in
+    DFSAdmin and MRAdmin. (acmurthy)
+
 Release 0.19.1 - Unreleased
 Release 0.19.1 - Unreleased
 
 
   IMPROVEMENTS
   IMPROVEMENTS

+ 1 - 1
src/hdfs/org/apache/hadoop/hdfs/tools/DFSAdmin.java

@@ -462,7 +462,7 @@ public class DFSAdmin extends FsShell {
       System.out.println(SetSpaceQuotaCommand.DESCRIPTION);
       System.out.println(SetSpaceQuotaCommand.DESCRIPTION);
     } else if (ClearSpaceQuotaCommand.matches(cmd)) {
     } else if (ClearSpaceQuotaCommand.matches(cmd)) {
       System.out.println(ClearSpaceQuotaCommand.DESCRIPTION);
       System.out.println(ClearSpaceQuotaCommand.DESCRIPTION);
-    } else if ("refresh-auth-policy".equals(cmd)) {
+    } else if ("refreshServiceAcl".equals(cmd)) {
       System.out.println(refreshServiceAcl);
       System.out.println(refreshServiceAcl);
     } else if ("help".equals(cmd)) {
     } else if ("help".equals(cmd)) {
       System.out.println(help);
       System.out.println(help);

+ 1 - 1
src/mapred/org/apache/hadoop/mapred/tools/MRAdmin.java

@@ -59,7 +59,7 @@ public class MRAdmin extends Configured implements Tool {
   String help = "-help [cmd]: \tDisplays help for the given command or all commands if none\n" +
   String help = "-help [cmd]: \tDisplays help for the given command or all commands if none\n" +
     "\t\tis specified.\n";
     "\t\tis specified.\n";
 
 
-  if ("refresh-auth-policy".equals(cmd)) {
+  if ("refreshServiceAcl".equals(cmd)) {
     System.out.println(refreshServiceAcl);
     System.out.println(refreshServiceAcl);
   } else if ("help".equals(cmd)) {
   } else if ("help".equals(cmd)) {
     System.out.println(help);
     System.out.println(help);