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:
parent
b600577095
commit
74bf9c6e4b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue