YARN-6493. Print requested node partition in assignContainer logs. (Jonathan Hung via wangda)

Change-Id: I6b045ebf0be09bcc73d4bf009ca60a59f9626916
This commit is contained in:
Wangda Tan 2017-05-22 15:00:31 -07:00
parent cecedcf558
commit e9575d7dae
1 changed files with 6 additions and 1 deletions

View File

@ -1551,12 +1551,17 @@ public class LeafQueue extends AbstractCSQueue {
// Inform the node
node.allocateContainer(allocatedContainer);
String label = RMNodeLabelsManager.NO_LABEL;
if (node.getLabels() != null && !node.getLabels().isEmpty()) {
label = node.getLabels().iterator().next();
}
LOG.info("assignedContainer" +
" application attempt=" + application.getApplicationAttemptId() +
" container=" + container +
" queue=" + this +
" clusterResource=" + clusterResource +
" type=" + type);
" type=" + type +
" requestedPartition=" + label);
createdContainer.setValue(allocatedContainer);
return container.getResource();