浏览代码

HADOOP-8296. hadoop/yarn daemonlog usage wrong (Devaraj K via tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1330445 13f79535-47bb-0310-9956-ffa450edef68
Thomas Graves 13 年之前
父节点
当前提交
e84b552713

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -378,6 +378,8 @@ Release 2.0.0 - UNRELEASED
     HADOOP-8314. HttpServer#hasAdminAccess should return false if 
     HADOOP-8314. HttpServer#hasAdminAccess should return false if 
     authorization is enabled but user is not authenticated. (tucu)
     authorization is enabled but user is not authenticated. (tucu)
 
 
+    HADOOP-8296. hadoop/yarn daemonlog usage wrong (Devaraj K via tgraves)
+
   BREAKDOWN OF HADOOP-7454 SUBTASKS
   BREAKDOWN OF HADOOP-7454 SUBTASKS
 
 
     HADOOP-7455. HA: Introduce HA Service Protocol Interface. (suresh)
     HADOOP-7455. HA: Introduce HA Service Protocol Interface. (suresh)

+ 3 - 5
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/LogLevel.java

@@ -36,11 +36,9 @@ import org.apache.hadoop.util.ServletUtil;
  */
  */
 @InterfaceStability.Evolving
 @InterfaceStability.Evolving
 public class LogLevel {
 public class LogLevel {
-  public static final String USAGES = "\nUSAGES:\n"
-    + "java " + LogLevel.class.getName()
-    + " -getlevel <host:port> <name>\n"
-    + "java " + LogLevel.class.getName()
-    + " -setlevel <host:port> <name> <level>\n";
+  public static final String USAGES = "\nUsage: General options are:\n"
+      + "\t[-getlevel <host:httpPort> <name>]\n"
+      + "\t[-setlevel <host:httpPort> <name> <level>]\n";
 
 
   /**
   /**
    * A command line implementation
    * A command line implementation