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

This commit is contained in:
Daniel Templeton 2017-01-09 22:12:58 -08:00
parent 945db55f2e
commit 6332a318bc
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);
}