public static interface JobFlowInstancesConfig.Builder extends SdkPojo, CopyableBuilder<JobFlowInstancesConfig.Builder,JobFlowInstancesConfig>
Modifier and Type | Method and Description |
---|---|
JobFlowInstancesConfig.Builder |
additionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
JobFlowInstancesConfig.Builder |
additionalMasterSecurityGroups(String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
JobFlowInstancesConfig.Builder |
additionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the core and task nodes.
|
JobFlowInstancesConfig.Builder |
additionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the core and task nodes.
|
JobFlowInstancesConfig.Builder |
ec2KeyName(String ec2KeyName)
The name of the EC2 key pair that can be used to connect to the master node using SSH as the user called
"hadoop."
|
JobFlowInstancesConfig.Builder |
ec2SubnetId(String ec2SubnetId)
Applies to clusters that use the uniform instance group configuration.
|
JobFlowInstancesConfig.Builder |
ec2SubnetIds(Collection<String> ec2SubnetIds)
Applies to clusters that use the instance fleet configuration.
|
JobFlowInstancesConfig.Builder |
ec2SubnetIds(String... ec2SubnetIds)
Applies to clusters that use the instance fleet configuration.
|
JobFlowInstancesConfig.Builder |
emrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
|
JobFlowInstancesConfig.Builder |
emrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the core and task nodes.
|
JobFlowInstancesConfig.Builder |
hadoopVersion(String hadoopVersion)
Applies only to Amazon EMR release versions earlier than 4.0.
|
JobFlowInstancesConfig.Builder |
instanceCount(Integer instanceCount)
The number of EC2 instances in the cluster.
|
JobFlowInstancesConfig.Builder |
instanceFleets(Collection<InstanceFleetConfig> instanceFleets)
|
JobFlowInstancesConfig.Builder |
instanceFleets(Consumer<InstanceFleetConfig.Builder>... instanceFleets)
|
JobFlowInstancesConfig.Builder |
instanceFleets(InstanceFleetConfig... instanceFleets)
|
JobFlowInstancesConfig.Builder |
instanceGroups(Collection<InstanceGroupConfig> instanceGroups)
Configuration for the instance groups in a cluster.
|
JobFlowInstancesConfig.Builder |
instanceGroups(Consumer<InstanceGroupConfig.Builder>... instanceGroups)
Configuration for the instance groups in a cluster.
|
JobFlowInstancesConfig.Builder |
instanceGroups(InstanceGroupConfig... instanceGroups)
Configuration for the instance groups in a cluster.
|
JobFlowInstancesConfig.Builder |
keepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps)
Specifies whether the cluster should remain available after completing all steps.
|
JobFlowInstancesConfig.Builder |
masterInstanceType(String masterInstanceType)
The EC2 instance type of the master node.
|
default JobFlowInstancesConfig.Builder |
placement(Consumer<PlacementType.Builder> placement)
The Availability Zone in which the cluster runs.
|
JobFlowInstancesConfig.Builder |
placement(PlacementType placement)
The Availability Zone in which the cluster runs.
|
JobFlowInstancesConfig.Builder |
serviceAccessSecurityGroup(String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private
subnets.
|
JobFlowInstancesConfig.Builder |
slaveInstanceType(String slaveInstanceType)
The EC2 instance type of the core and task nodes.
|
JobFlowInstancesConfig.Builder |
terminationProtected(Boolean terminationProtected)
Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call,
user intervention, or in the event of a job-flow error.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
JobFlowInstancesConfig.Builder masterInstanceType(String masterInstanceType)
The EC2 instance type of the master node.
masterInstanceType
- The EC2 instance type of the master node.JobFlowInstancesConfig.Builder slaveInstanceType(String slaveInstanceType)
The EC2 instance type of the core and task nodes.
slaveInstanceType
- The EC2 instance type of the core and task nodes.JobFlowInstancesConfig.Builder instanceCount(Integer instanceCount)
The number of EC2 instances in the cluster.
instanceCount
- The number of EC2 instances in the cluster.JobFlowInstancesConfig.Builder instanceGroups(Collection<InstanceGroupConfig> instanceGroups)
Configuration for the instance groups in a cluster.
instanceGroups
- Configuration for the instance groups in a cluster.JobFlowInstancesConfig.Builder instanceGroups(InstanceGroupConfig... instanceGroups)
Configuration for the instance groups in a cluster.
instanceGroups
- Configuration for the instance groups in a cluster.JobFlowInstancesConfig.Builder instanceGroups(Consumer<InstanceGroupConfig.Builder>... instanceGroups)
Configuration for the instance groups in a cluster.
This is a convenience method that creates an instance of theInstanceGroupConfig.Builder
avoiding the need to create one
manually via InstanceGroupConfig.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #instanceGroups(List
.
instanceGroups
- a consumer that will call methods on
InstanceGroupConfig.Builder
#instanceGroups(java.util.Collection)
JobFlowInstancesConfig.Builder instanceFleets(Collection<InstanceFleetConfig> instanceFleets)
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
instanceFleets
- The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
JobFlowInstancesConfig.Builder instanceFleets(InstanceFleetConfig... instanceFleets)
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
instanceFleets
- The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
JobFlowInstancesConfig.Builder instanceFleets(Consumer<InstanceFleetConfig.Builder>... instanceFleets)
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
This is a convenience method that creates an instance of theInstanceFleetConfig.Builder
avoiding the need to create one
manually via InstanceFleetConfig.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #instanceFleets(List
.
instanceFleets
- a consumer that will call methods on
InstanceFleetConfig.Builder
#instanceFleets(java.util.Collection)
JobFlowInstancesConfig.Builder ec2KeyName(String ec2KeyName)
The name of the EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."
ec2KeyName
- The name of the EC2 key pair that can be used to connect to the master node using SSH as the user
called "hadoop."JobFlowInstancesConfig.Builder placement(PlacementType placement)
The Availability Zone in which the cluster runs.
placement
- The Availability Zone in which the cluster runs.default JobFlowInstancesConfig.Builder placement(Consumer<PlacementType.Builder> placement)
The Availability Zone in which the cluster runs.
This is a convenience method that creates an instance of thePlacementType.Builder
avoiding the need
to create one manually via PlacementType.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to placement(PlacementType)
.
placement
- a consumer that will call methods on PlacementType.Builder
placement(PlacementType)
JobFlowInstancesConfig.Builder keepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps)
Specifies whether the cluster should remain available after completing all steps. Defaults to
true
. For more information about configuring cluster termination, see Control Cluster
Termination in the EMR Management Guide.
keepJobFlowAliveWhenNoSteps
- Specifies whether the cluster should remain available after completing all steps. Defaults to
true
. For more information about configuring cluster termination, see Control
Cluster Termination in the EMR Management Guide.JobFlowInstancesConfig.Builder terminationProtected(Boolean terminationProtected)
Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.
terminationProtected
- Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API
call, user intervention, or in the event of a job-flow error.JobFlowInstancesConfig.Builder hadoopVersion(String hadoopVersion)
Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid
inputs are "0.18" (no longer maintained), "0.20" (no longer maintained), "0.20.205" (no longer maintained),
"1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless the
AmiVersion
parameter is set in the RunJobFlow call, in which case the default version of Hadoop
for that AMI version is used.
hadoopVersion
- Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster.
Valid inputs are "0.18" (no longer maintained), "0.20" (no longer maintained), "0.20.205" (no longer
maintained), "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used,
unless the AmiVersion
parameter is set in the RunJobFlow call, in which case the default
version of Hadoop for that AMI version is used.JobFlowInstancesConfig.Builder ec2SubnetId(String ec2SubnetId)
Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value and your account supports EC2-Classic, the cluster launches in EC2-Classic.
ec2SubnetId
- Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon
Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet
where you want the cluster to launch. If you do not specify this value and your account supports
EC2-Classic, the cluster launches in EC2-Classic.JobFlowInstancesConfig.Builder ec2SubnetIds(Collection<String> ec2SubnetIds)
Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
ec2SubnetIds
- Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are
specified, Amazon EMR evaluates them and launches instances in the optimal subnet. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
JobFlowInstancesConfig.Builder ec2SubnetIds(String... ec2SubnetIds)
Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
ec2SubnetIds
- Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are
specified, Amazon EMR evaluates them and launches instances in the optimal subnet. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
JobFlowInstancesConfig.Builder emrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node. If you specify
EmrManagedMasterSecurityGroup
, you must also specify EmrManagedSlaveSecurityGroup
.
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master node. If you specify
EmrManagedMasterSecurityGroup
, you must also specify
EmrManagedSlaveSecurityGroup
.JobFlowInstancesConfig.Builder emrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the core and task nodes. If you specify
EmrManagedSlaveSecurityGroup
, you must also specify EmrManagedMasterSecurityGroup
.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the core and task nodes. If you specify
EmrManagedSlaveSecurityGroup
, you must also specify
EmrManagedMasterSecurityGroup
.JobFlowInstancesConfig.Builder serviceAccessSecurityGroup(String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC
private subnets.JobFlowInstancesConfig.Builder additionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.JobFlowInstancesConfig.Builder additionalMasterSecurityGroups(String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.JobFlowInstancesConfig.Builder additionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the core and task nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the core and task nodes.JobFlowInstancesConfig.Builder additionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the core and task nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the core and task nodes.Copyright © 2023. All rights reserved.