public static class AMRMClient.ContainerRequest extends Object
| Constructor and Description |
|---|
AMRMClient.ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
String[] nodes,
String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority)
Instantiates a
AMRMClient.ContainerRequest with the given constraints and
locality relaxation enabled. |
AMRMClient.ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
String[] nodes,
String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
boolean relaxLocality)
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
AMRMClient.ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
String[] nodes,
String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
boolean relaxLocality,
String nodeLabelsExpression)
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.Resource |
getCapability() |
String |
getNodeLabelExpression() |
List<String> |
getNodes() |
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
List<String> |
getRacks() |
boolean |
getRelaxLocality() |
String |
toString() |
public AMRMClient.ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
String[] nodes,
String[] racks,
org.apache.hadoop.yarn.api.records.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 AMRMClient.ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
String[] nodes,
String[] racks,
org.apache.hadoop.yarn.api.records.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 AMRMClient.ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
String[] nodes,
String[] racks,
org.apache.hadoop.yarn.api.records.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 labelpublic org.apache.hadoop.yarn.api.records.Resource getCapability()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
public boolean getRelaxLocality()
public String getNodeLabelExpression()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.