From 2b2465dfac1f147b6bb20d878b69a8cc3e85c8ad Mon Sep 17 00:00:00 2001 From: Xuan Date: Mon, 8 Jun 2015 15:43:03 -0700 Subject: [PATCH] YARN-3778. Fix Yarn resourcemanger CLI usage. Contributed by Brahma Reddy Battula --- hadoop-yarn-project/CHANGES.txt | 2 ++ .../hadoop/yarn/server/resourcemanager/ResourceManager.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 86494cc15c..3ee3e77569 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -510,6 +510,8 @@ Release 2.8.0 - UNRELEASED YARN-3747. TestLocalDirsHandlerService should delete the created test directory logDir2. (David Moore via devaraj) + YARN-3778. Fix Yarn resourcemanger CLI usage. (Brahma Reddy Battula via xgong) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java index c209873495..4153ba1136 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java @@ -1303,7 +1303,7 @@ private static void removeApplication(Configuration conf, String applicationId) } private static void printUsage(PrintStream out) { - out.println("Usage: java ResourceManager [-format-state-store]"); + out.println("Usage: yarn resourcemanager [-format-state-store]"); out.println(" " + "[-remove-application-from-state-store ]" + "\n"); }