From 74bf9c6e4b982cecbd3aa0d345c2c2144f4c6f0e Mon Sep 17 00:00:00 2001 From: Daniel Templeton Date: Mon, 9 Jan 2017 22:12:58 -0800 Subject: [PATCH] YARN-6073. Misuse of format specifier in Preconditions.checkArgument (Contributed by Yuanbo Liu via Daniel Templeton) (cherry picked from commit 6332a318bc1e2e9d73d7159eab26347bb3f1f9b3) --- .../main/java/org/apache/hadoop/yarn/client/cli/RMAdminCLI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/RMAdminCLI.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/RMAdminCLI.java index 2508c3e759d..48260139faf 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/RMAdminCLI.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/RMAdminCLI.java @@ -685,7 +685,7 @@ public class RMAdminCLI extends HAAdmin { } int nLabels = map.get(nodeId).size(); - Preconditions.checkArgument(nLabels <= 1, "%d labels specified on host=%s" + Preconditions.checkArgument(nLabels <= 1, "%s labels specified on host=%s" + ", please note that we do not support specifying multiple" + " labels on a single host for now.", nLabels, nodeIdStr); }