YARN-6493. Print requested node partition in assignContainer logs. (Jonathan Hung via wangda)
Change-Id: I6b045ebf0be09bcc73d4bf009ca60a59f9626916
This commit is contained in:
parent
cecedcf558
commit
e9575d7dae
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue