public static class AMRMClient.ContainerRequest
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AMRMClient.ContainerRequest.ContainerRequestBuilder |
Class to construct instances of
AMRMClient.ContainerRequest with specific
options. |
| Constructor | Description |
|---|---|
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints and
locality relaxation enabled. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
boolean relaxLocality) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
boolean relaxLocality,
java.lang.String nodeLabelsExpression) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints and
locality relaxation enabled. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality,
java.lang.String nodeLabelsExpression) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality,
java.lang.String nodeLabelsExpression,
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality,
java.lang.String nodeLabelsExpression,
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest,
java.lang.String profile) |
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
java.lang.String profile) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getAllocationRequestId() |
|
org.apache.hadoop.yarn.api.records.Resource |
getCapability() |
|
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest |
getExecutionTypeRequest() |
|
java.lang.String |
getNodeLabelExpression() |
|
java.util.List<java.lang.String> |
getNodes() |
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
|
java.util.List<java.lang.String> |
getRacks() |
|
boolean |
getRelaxLocality() |
|
java.lang.String |
getResourceProfile() |
|
static AMRMClient.ContainerRequest.ContainerRequestBuilder |
newBuilder() |
|
java.lang.String |
toString() |
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.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.@VisibleForTesting
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
java.lang.String profile)
@Public
@Evolving
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId)
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.allocationRequestId - Allocation Request Idpublic ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.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
@Evolving
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
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.allocationRequestId - Allocation Request Idpublic ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
boolean relaxLocality,
java.lang.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 label@Public
@Evolving
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality,
java.lang.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.allocationRequestId - The allocationRequestId of the request. To be used as a tracking
id to match Containers allocated against this request. Will
default to 0 if not specified.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 ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality,
java.lang.String nodeLabelsExpression,
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest)
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.allocationRequestId - The allocationRequestId of the request. To be used as a tracking
id to match Containers allocated against this request. Will
default to 0 if not specified.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 labelexecutionTypeRequest - Set the execution type of the container request.public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] nodes,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
boolean relaxLocality,
java.lang.String nodeLabelsExpression,
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest,
java.lang.String profile)
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.allocationRequestId - The allocationRequestId of the request. To be used as a tracking
id to match Containers allocated against this request. Will
default to 0 if not specified.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 labelexecutionTypeRequest - Set the execution type of the container request.profile - Set the resource profile for the container requestpublic org.apache.hadoop.yarn.api.records.Resource getCapability()
public java.util.List<java.lang.String> getNodes()
public java.util.List<java.lang.String> getRacks()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
public long getAllocationRequestId()
public boolean getRelaxLocality()
public java.lang.String getNodeLabelExpression()
public org.apache.hadoop.yarn.api.records.ExecutionTypeRequest getExecutionTypeRequest()
public java.lang.String getResourceProfile()
public java.lang.String toString()
toString in class java.lang.Objectpublic static AMRMClient.ContainerRequest.ContainerRequestBuilder newBuilder()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.