int nLabels = map.get(nodeId).size();
Preconditions.checkArgument(nLabels <= 1, "%d labels specified on host=%s"
+ ", please note that we do not support specifying multiple"
+ " labels on a single host for now.", nLabels, nodeIdStr);
The %d should be replaced with %s, per
This JIRA can be my good start of first patch for YARN.
Yongjun Zhang Would you mind assigning this JIRA for me, since I don't have the privilege to assign YARN JIRA to myself.
Sure Yuanbo Liu, seems someone need to help to add your name to YARN contributer list before your name can be assigned to (I tried and could not).
upload v1 patch for this JIRA.
Patch looks good to me. +1
Daniel Templeton Thanks for your review.
Thanks for the patch, Yuanbo Liu, and, Yongjun Zhang, for filing the issue. Committed to trunk and branch-2. Congrats on your first commit, Yuanbo Liu!
FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #11096 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11096/)
YARN-6073. Misuse of format specifier in Preconditions.checkArgument (templedf: rev 6332a318bc1e2e9d73d7159eab26347bb3f1f9b3)