|
@@ -118,8 +118,8 @@ public abstract class AMRMClient<T extends AMRMClient.ContainerRequest> extends
|
|
private String nodeLabelsExpression;
|
|
private String nodeLabelsExpression;
|
|
private ExecutionTypeRequest executionTypeRequest =
|
|
private ExecutionTypeRequest executionTypeRequest =
|
|
ExecutionTypeRequest.newInstance();
|
|
ExecutionTypeRequest.newInstance();
|
|
- private String resourceProfile;
|
|
|
|
-
|
|
|
|
|
|
+ private String resourceProfile = ProfileCapability.DEFAULT_PROFILE;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Instantiates a {@link ContainerRequest} with the given constraints and
|
|
* Instantiates a {@link ContainerRequest} with the given constraints and
|
|
* locality relaxation enabled.
|
|
* locality relaxation enabled.
|
|
@@ -540,6 +540,11 @@ public abstract class AMRMClient<T extends AMRMClient.ContainerRequest> extends
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public ContainerRequestBuilder resourceProfile(String resourceProfile) {
|
|
|
|
+ containerRequest.resourceProfile = resourceProfile;
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
public ContainerRequest build() {
|
|
public ContainerRequest build() {
|
|
containerRequest.sanityCheck();
|
|
containerRequest.sanityCheck();
|
|
return containerRequest;
|
|
return containerRequest;
|