YARN-6073. Misuse of format specifier in Preconditions.checkArgument (Contributed by Yuanbo Liu via Daniel Templeton)

(cherry picked from commit 6332a318bc)
This commit is contained in:
Daniel Templeton 2017-01-09 22:12:58 -08:00
parent b600577095
commit 74bf9c6e4b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}