YARN-7199. Fix TestAMRMClientContainerRequest.testOpportunisticAndGuaranteedRequests. (Botong Huang via asuresh)
This commit is contained in:
parent
0adc0471d0
commit
29dd55153e
@ -118,8 +118,8 @@ public static class ContainerRequest {
|
||||
private String nodeLabelsExpression;
|
||||
private ExecutionTypeRequest executionTypeRequest =
|
||||
ExecutionTypeRequest.newInstance();
|
||||
private String resourceProfile;
|
||||
|
||||
private String resourceProfile = ProfileCapability.DEFAULT_PROFILE;
|
||||
|
||||
/**
|
||||
* Instantiates a {@link ContainerRequest} with the given constraints and
|
||||
* locality relaxation enabled.
|
||||
@ -540,6 +540,11 @@ public ContainerRequestBuilder executionTypeRequest(
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerRequestBuilder resourceProfile(String resourceProfile) {
|
||||
containerRequest.resourceProfile = resourceProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerRequest build() {
|
||||
containerRequest.sanityCheck();
|
||||
return containerRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user