Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Currently with nodelabel AMRMClient will not be able to specify nodelabels with Node/Rack requests.For application like spark NODE_LOCAL requests cannot be asked with label expression.
As per the check in AMRMClientImpl#checkNodeLabelExpression
// Don't allow specify node label against ANY request if ((containerRequest.getRacks() != null && (!containerRequest.getRacks().isEmpty())) || (containerRequest.getNodes() != null && (!containerRequest.getNodes().isEmpty()))) { throw new InvalidContainerRequestException( "Cannot specify node label with rack and node"); }
AppSchedulingInfo#updateResourceRequests we do reset of labels to that of OFF-SWITCH.
The above check is not required for ContainerRequest ask /cc wangda thank you for confirming
Attachments
Attachments
Issue Links
- is related to
-
YARN-4140 RM container allocation delayed incase of app submitted to Nodelabel partition
- Resolved