Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.9.2
-
None
-
None
-
//代码占位符 private void updateNodeLabels(ResourceRequest request) { String resourceName = request.getResourceName(); if (resourceName.equals(ResourceRequest.ANY)) { ResourceRequest previousAnyRequest = getResourceRequest(resourceName); // When there is change in ANY request label expression, we should // update label for all resource requests already added of same // priority as ANY resource request. if ((null == previousAnyRequest) || hasRequestLabelChanged( previousAnyRequest, request)) { for (ResourceRequest r : resourceRequestMap.values()) { if (!r.getResourceName().equals(ResourceRequest.ANY)) { r.setNodeLabelExpression(request.getNodeLabelExpression()); } } } } else{ // if resource Name is not ANY its nodeLabel will be same as ANY Request ResourceRequest anyRequest = getResourceRequest(ResourceRequest.ANY); if (anyRequest != null) { request.setNodeLabelExpression(anyRequest.getNodeLabelExpression()); } } }
//代码占位符 private void updateNodeLabels(ResourceRequest request) { String resourceName = request.getResourceName(); if (resourceName.equals(ResourceRequest.ANY)) { ResourceRequest previousAnyRequest = getResourceRequest(resourceName); // When there is change in ANY request label expression, we should // update label for all resource requests already added of same // priority as ANY resource request. if (( null == previousAnyRequest) || hasRequestLabelChanged( previousAnyRequest, request)) { for (ResourceRequest r : resourceRequestMap.values()) { if (!r.getResourceName().equals(ResourceRequest.ANY)) { r.setNodeLabelExpression(request.getNodeLabelExpression()); } } } } else { // if resource Name is not ANY its nodeLabel will be same as ANY Request ResourceRequest anyRequest = getResourceRequest(ResourceRequest.ANY); if (anyRequest != null ) { request.setNodeLabelExpression(anyRequest.getNodeLabelExpression()); } } }
Description
LocalitySchedulingPlacementSet.updateNodeLabels make RACK/NODE_LOCAL Request have same nodelabel as ANY Request instead of <DEFAULT_PARTITION>
Attachments
Issue Links
- Is contained by
-
MAPREDUCE-6304 Specifying node labels when submitting MR jobs
- Resolved