public static class AMRMClient.ContainerRequest extends Object
| Constructor and Description |
|---|
ContainerRequest(Resource capability,
String[] nodes,
String[] racks,
Priority priority)
Instantiates a
AMRMClient.ContainerRequest with the given constraints and
locality relaxation enabled. |
ContainerRequest(Resource capability,
String[] nodes,
String[] racks,
Priority priority,
boolean relaxLocality)
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(Resource capability,
String[] nodes,
String[] racks,
Priority priority,
boolean relaxLocality,
String nodeLabelsExpression)
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
| Modifier and Type | Method and Description |
|---|---|
Resource |
getCapability() |
String |
getNodeLabelExpression() |
List<String> |
getNodes() |
Priority |
getPriority() |
List<String> |
getRacks() |
boolean |
getRelaxLocality() |
String |
toString() |
public ContainerRequest(Resource capability, String[] nodes, String[] racks, Priority priority)
AMRMClient.ContainerRequest with the given constraints and
locality relaxation enabled.capability - The Resource to be requested for each container.nodes - Any hosts to request that the containers are placed on.racks - Any racks to request that the containers are placed on. The
racks corresponding to any hosts requested will be automatically
added to this list.priority - The priority at which to request the containers. Higher
priorities have lower numerical values.public ContainerRequest(Resource capability, String[] nodes, String[] racks, Priority priority, boolean relaxLocality)
AMRMClient.ContainerRequest with the given constraints.capability - The Resource to be requested for each container.nodes - Any hosts to request that the containers are placed on.racks - Any racks to request that the containers are placed on. The
racks corresponding to any hosts requested will be automatically
added to this list.priority - The priority at which to request the containers. Higher
priorities have lower numerical values.relaxLocality - If true, containers for this request may be assigned on hosts
and racks other than the ones explicitly requested.public ContainerRequest(Resource capability, String[] nodes, String[] racks, Priority priority, boolean relaxLocality, String nodeLabelsExpression)
AMRMClient.ContainerRequest with the given constraints.capability - The Resource to be requested for each container.nodes - Any hosts to request that the containers are placed on.racks - Any racks to request that the containers are placed on. The
racks corresponding to any hosts requested will be automatically
added to this list.priority - The priority at which to request the containers. Higher
priorities have lower numerical values.relaxLocality - If true, containers for this request may be assigned on hosts
and racks other than the ones explicitly requested.nodeLabelsExpression - Set node labels to allocate resource, now we only support
asking for only a single node labelCopyright © 2018 CERN. All Rights Reserved.