YARN-1892. Improved some logs in the scheduler. Contributed by Jian He.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1587717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
161d97807f
commit
44b6261bfa
|
@ -73,6 +73,8 @@ Release 2.4.1 - UNRELEASED
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
||||||
|
YARN-1892. Improved some logs in the scheduler. (Jian He via zjshen)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -343,10 +343,6 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
|
||||||
+ ", " + nodeHealthStatus.getHealthReport());
|
+ ", " + nodeHealthStatus.getHealthReport());
|
||||||
}
|
}
|
||||||
List<ContainerStatus> containersStatuses = getContainerStatuses();
|
List<ContainerStatus> containersStatuses = getContainerStatuses();
|
||||||
if (LOG.isDebugEnabled()) {
|
|
||||||
LOG.debug(this.nodeId + " sending out status for "
|
|
||||||
+ containersStatuses.size() + " containers");
|
|
||||||
}
|
|
||||||
NodeStatus nodeStatus =
|
NodeStatus nodeStatus =
|
||||||
NodeStatus.newInstance(nodeId, responseId, containersStatuses,
|
NodeStatus.newInstance(nodeId, responseId, containersStatuses,
|
||||||
createKeepAliveApplicationList(), nodeHealthStatus);
|
createKeepAliveApplicationList(), nodeHealthStatus);
|
||||||
|
@ -373,7 +369,8 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Sending out container statuses: " + containerStatuses);
|
LOG.debug("Sending out " + containerStatuses.size()
|
||||||
|
+ " container statuses: " + containerStatuses);
|
||||||
}
|
}
|
||||||
return containerStatuses;
|
return containerStatuses;
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,11 +256,13 @@ public class SchedulerApplicationAttempt {
|
||||||
}
|
}
|
||||||
reservedContainers.put(node.getNodeID(), rmContainer);
|
reservedContainers.put(node.getNodeID(), rmContainer);
|
||||||
|
|
||||||
LOG.info("Application " + getApplicationId()
|
if (LOG.isDebugEnabled()) {
|
||||||
+ " reserved container " + rmContainer
|
LOG.debug("Application attempt " + getApplicationAttemptId()
|
||||||
+ " on node " + node + ", currently has " + reservedContainers.size()
|
+ " reserved container " + rmContainer + " on node " + node
|
||||||
+ " at priority " + priority
|
+ ". This attempt currently has " + reservedContainers.size()
|
||||||
|
+ " reserved containers at priority " + priority
|
||||||
+ "; currentReservation " + currentReservation.getMemory());
|
+ "; currentReservation " + currentReservation.getMemory());
|
||||||
|
}
|
||||||
|
|
||||||
return rmContainer;
|
return rmContainer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,8 +107,6 @@ public class LeafQueue implements CSQueue {
|
||||||
private final Resource maximumAllocation;
|
private final Resource maximumAllocation;
|
||||||
private final float minimumAllocationFactor;
|
private final float minimumAllocationFactor;
|
||||||
|
|
||||||
private RMContainerTokenSecretManager containerTokenSecretManager;
|
|
||||||
|
|
||||||
private Map<String, User> users = new HashMap<String, User>();
|
private Map<String, User> users = new HashMap<String, User>();
|
||||||
|
|
||||||
private final QueueMetrics metrics;
|
private final QueueMetrics metrics;
|
||||||
|
@ -149,7 +147,6 @@ public class LeafQueue implements CSQueue {
|
||||||
Resources.ratio(resourceCalculator,
|
Resources.ratio(resourceCalculator,
|
||||||
Resources.subtract(maximumAllocation, minimumAllocation),
|
Resources.subtract(maximumAllocation, minimumAllocation),
|
||||||
maximumAllocation);
|
maximumAllocation);
|
||||||
this.containerTokenSecretManager = cs.getContainerTokenSecretManager();
|
|
||||||
|
|
||||||
float capacity =
|
float capacity =
|
||||||
(float)cs.getConfiguration().getCapacity(getQueuePath()) / 100;
|
(float)cs.getConfiguration().getCapacity(getQueuePath()) / 100;
|
||||||
|
@ -560,7 +557,7 @@ public class LeafQueue implements CSQueue {
|
||||||
return queueName + ": " +
|
return queueName + ": " +
|
||||||
"capacity=" + capacity + ", " +
|
"capacity=" + capacity + ", " +
|
||||||
"absoluteCapacity=" + absoluteCapacity + ", " +
|
"absoluteCapacity=" + absoluteCapacity + ", " +
|
||||||
"usedResources=" + usedResources +
|
"usedResources=" + usedResources + ", " +
|
||||||
"usedCapacity=" + getUsedCapacity() + ", " +
|
"usedCapacity=" + getUsedCapacity() + ", " +
|
||||||
"absoluteUsedCapacity=" + getAbsoluteUsedCapacity() + ", " +
|
"absoluteUsedCapacity=" + getAbsoluteUsedCapacity() + ", " +
|
||||||
"numApps=" + getNumApplications() + ", " +
|
"numApps=" + getNumApplications() + ", " +
|
||||||
|
@ -949,15 +946,16 @@ public class LeafQueue implements CSQueue {
|
||||||
Resources.add(usedResources, required),
|
Resources.add(usedResources, required),
|
||||||
clusterResource);
|
clusterResource);
|
||||||
if (potentialNewCapacity > absoluteMaxCapacity) {
|
if (potentialNewCapacity > absoluteMaxCapacity) {
|
||||||
LOG.info(getQueueName() +
|
if (LOG.isDebugEnabled()) {
|
||||||
" usedResources: " + usedResources +
|
LOG.debug(getQueueName()
|
||||||
" clusterResources: " + clusterResource +
|
+ " usedResources: " + usedResources
|
||||||
" currentCapacity " +
|
+ " clusterResources: " + clusterResource
|
||||||
Resources.divide(resourceCalculator, clusterResource,
|
+ " currentCapacity "
|
||||||
usedResources, clusterResource) +
|
+ Resources.divide(resourceCalculator, clusterResource,
|
||||||
" required " + required +
|
usedResources, clusterResource) + " required " + required
|
||||||
" potentialNewCapacity: " + potentialNewCapacity + " ( " +
|
+ " potentialNewCapacity: " + potentialNewCapacity + " ( "
|
||||||
" max-capacity: " + absoluteMaxCapacity + ")");
|
+ " max-capacity: " + absoluteMaxCapacity + ")");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -1300,7 +1298,7 @@ public class LeafQueue implements CSQueue {
|
||||||
ResourceRequest request, NodeType type, RMContainer rmContainer) {
|
ResourceRequest request, NodeType type, RMContainer rmContainer) {
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("assignContainers: node=" + node.getNodeName()
|
LOG.debug("assignContainers: node=" + node.getNodeName()
|
||||||
+ " application=" + application.getApplicationId().getId()
|
+ " application=" + application.getApplicationId()
|
||||||
+ " priority=" + priority.getPriority()
|
+ " priority=" + priority.getPriority()
|
||||||
+ " request=" + request + " type=" + type);
|
+ " request=" + request + " type=" + type);
|
||||||
}
|
}
|
||||||
|
@ -1352,14 +1350,10 @@ public class LeafQueue implements CSQueue {
|
||||||
allocatedContainer);
|
allocatedContainer);
|
||||||
|
|
||||||
LOG.info("assignedContainer" +
|
LOG.info("assignedContainer" +
|
||||||
" application=" + application.getApplicationId() +
|
" application attempt=" + application.getApplicationAttemptId() +
|
||||||
" container=" + container +
|
" container=" + container +
|
||||||
" containerId=" + container.getId() +
|
|
||||||
" queue=" + this +
|
" queue=" + this +
|
||||||
" usedCapacity=" + getUsedCapacity() +
|
" clusterResource=" + clusterResource);
|
||||||
" absoluteUsedCapacity=" + getAbsoluteUsedCapacity() +
|
|
||||||
" used=" + usedResources +
|
|
||||||
" cluster=" + clusterResource);
|
|
||||||
|
|
||||||
return container.getResource();
|
return container.getResource();
|
||||||
} else {
|
} else {
|
||||||
|
@ -1367,13 +1361,11 @@ public class LeafQueue implements CSQueue {
|
||||||
reserve(application, priority, node, rmContainer, container);
|
reserve(application, priority, node, rmContainer, container);
|
||||||
|
|
||||||
LOG.info("Reserved container " +
|
LOG.info("Reserved container " +
|
||||||
" application=" + application.getApplicationId() +
|
" application attempt=" + application.getApplicationAttemptId() +
|
||||||
" resource=" + request.getCapability() +
|
" resource=" + request.getCapability() +
|
||||||
" queue=" + this.toString() +
|
" queue=" + this.toString() +
|
||||||
" usedCapacity=" + getUsedCapacity() +
|
" node=" + node +
|
||||||
" absoluteUsedCapacity=" + getAbsoluteUsedCapacity() +
|
" clusterResource=" + clusterResource);
|
||||||
" used=" + usedResources +
|
|
||||||
" cluster=" + clusterResource);
|
|
||||||
|
|
||||||
return request.getCapability();
|
return request.getCapability();
|
||||||
}
|
}
|
||||||
|
@ -1440,11 +1432,7 @@ public class LeafQueue implements CSQueue {
|
||||||
application, container.getResource());
|
application, container.getResource());
|
||||||
LOG.info("completedContainer" +
|
LOG.info("completedContainer" +
|
||||||
" container=" + container +
|
" container=" + container +
|
||||||
" resource=" + container.getResource() +
|
|
||||||
" queue=" + this +
|
" queue=" + this +
|
||||||
" usedCapacity=" + getUsedCapacity() +
|
|
||||||
" absoluteUsedCapacity=" + getAbsoluteUsedCapacity() +
|
|
||||||
" used=" + usedResources +
|
|
||||||
" cluster=" + clusterResource);
|
" cluster=" + clusterResource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,12 +231,19 @@ public class FiCaSchedulerNode extends SchedulerNode {
|
||||||
" on node " + this);
|
" on node " + this);
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG.info("Updated reserved container " +
|
if (LOG.isDebugEnabled()) {
|
||||||
reservedContainer.getContainer().getId() + " on node " +
|
LOG.debug("Updated reserved container "
|
||||||
this + " for application " + application);
|
+ reservedContainer.getContainer().getId() + " on node " + this
|
||||||
|
+ " for application attempt "
|
||||||
|
+ application.getApplicationAttemptId());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG.info("Reserved container " + reservedContainer.getContainer().getId() +
|
if (LOG.isDebugEnabled()) {
|
||||||
" on node " + this + " for application " + application);
|
LOG.debug("Reserved container "
|
||||||
|
+ reservedContainer.getContainer().getId() + " on node " + this
|
||||||
|
+ " for application attempt "
|
||||||
|
+ application.getApplicationAttemptId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.reservedContainer = reservedContainer;
|
this.reservedContainer = reservedContainer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue