public static class AMRMClient.ContainerRequest extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AMRMClient.ContainerRequest.ContainerRequestBuilderClass to construct instances of  AMRMClient.ContainerRequestwith specific
 options. | 
| Constructor and Description | 
|---|
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority)Instantiates a  AMRMClient.ContainerRequestwith the given constraints and
 locality relaxation enabled. | 
| 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.ContainerRequestwith the given constraints. | 
| 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.ContainerRequestwith the given constraints. | 
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority,
                long allocationRequestId)Instantiates a  AMRMClient.ContainerRequestwith the given constraints and
 locality relaxation enabled. | 
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority,
                long allocationRequestId,
                boolean relaxLocality)Instantiates a  AMRMClient.ContainerRequestwith the given constraints. | 
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority,
                long allocationRequestId,
                boolean relaxLocality,
                String nodeLabelsExpression)Instantiates a  AMRMClient.ContainerRequestwith the given constraints. | 
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority,
                long allocationRequestId,
                boolean relaxLocality,
                String nodeLabelsExpression,
                org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest)Instantiates a  AMRMClient.ContainerRequestwith the given constraints. | 
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority,
                long allocationRequestId,
                boolean relaxLocality,
                String nodeLabelsExpression,
                org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest,
                String profile)Instantiates a  AMRMClient.ContainerRequestwith the given constraints. | 
| ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                String[] nodes,
                String[] racks,
                org.apache.hadoop.yarn.api.records.Priority priority,
                String profile) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getAllocationRequestId() | 
| org.apache.hadoop.yarn.api.records.Resource | getCapability() | 
| org.apache.hadoop.yarn.api.records.ExecutionTypeRequest | getExecutionTypeRequest() | 
| String | getNodeLabelExpression() | 
| List<String> | getNodes() | 
| org.apache.hadoop.yarn.api.records.Priority | getPriority() | 
| List<String> | getRacks() | 
| boolean | getRelaxLocality() | 
| String | getResourceProfile() | 
| static AMRMClient.ContainerRequest.ContainerRequestBuilder | newBuilder() | 
| String | toString() | 
public 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 ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                        String[] nodes,
                        String[] racks,
                        org.apache.hadoop.yarn.api.records.Priority priority,
                        String profile)
@InterfaceAudience.Public
 @InterfaceStability.Evolving
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                                                                                String[] nodes,
                                                                                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,
                        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.@InterfaceAudience.Public
 @InterfaceStability.Evolving
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                                                                                String[] nodes,
                                                                                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,
                        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 label@InterfaceAudience.Public
 @InterfaceStability.Evolving
public ContainerRequest(org.apache.hadoop.yarn.api.records.Resource capability,
                                                                                String[] nodes,
                                                                                String[] racks,
                                                                                org.apache.hadoop.yarn.api.records.Priority priority,
                                                                                long allocationRequestId,
                                                                                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.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,
                        String[] nodes,
                        String[] racks,
                        org.apache.hadoop.yarn.api.records.Priority priority,
                        long allocationRequestId,
                        boolean relaxLocality,
                        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,
                        String[] nodes,
                        String[] racks,
                        org.apache.hadoop.yarn.api.records.Priority priority,
                        long allocationRequestId,
                        boolean relaxLocality,
                        String nodeLabelsExpression,
                        org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest,
                        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 org.apache.hadoop.yarn.api.records.Priority getPriority()
public long getAllocationRequestId()
public boolean getRelaxLocality()
public String getNodeLabelExpression()
public org.apache.hadoop.yarn.api.records.ExecutionTypeRequest getExecutionTypeRequest()
public String getResourceProfile()
public static AMRMClient.ContainerRequest.ContainerRequestBuilder newBuilder()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.