public static interface JobFlowInstancesConfig.Builder extends 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 slave nodes.
|
JobFlowInstancesConfig.Builder |
additionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
JobFlowInstancesConfig.Builder |
ec2KeyName(String ec2KeyName)
The name of the EC2 key pair that can be used to ssh to the master node 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 slave nodes.
|
JobFlowInstancesConfig.Builder |
hadoopVersion(String hadoopVersion)
The Hadoop version for the cluster.
|
JobFlowInstancesConfig.Builder |
instanceCount(Integer instanceCount)
The number of EC2 instances in the cluster.
|
JobFlowInstancesConfig.Builder |
instanceFleets(Collection<InstanceFleetConfig> instanceFleets)
|
JobFlowInstancesConfig.Builder |
instanceFleets(InstanceFleetConfig... instanceFleets)
|
JobFlowInstancesConfig.Builder |
instanceGroups(Collection<InstanceGroupConfig> 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 slave 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.
|
copy
apply, 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 slave nodes.
slaveInstanceType
- The EC2 instance type of the slave 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 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 ec2KeyName(String ec2KeyName)
The name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
ec2KeyName
- The name of the EC2 key pair that can be used to ssh to the master node 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 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.
keepJobFlowAliveWhenNoSteps
- Specifies whether the cluster should remain available after completing all steps.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)
The Hadoop version for the cluster. Valid inputs are "0.18" (deprecated), "0.20" (deprecated), "0.20.205" (deprecated), "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
- The Hadoop version for the cluster. Valid inputs are "0.18" (deprecated), "0.20" (deprecated),
"0.20.205" (deprecated), "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, the cluster launches in the normal Amazon Web Services cloud, outside of an Amazon VPC, if the account launching the cluster supports EC2 Classic networks in the region where the cluster launches.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for clusters launched in an Amazon VPC.
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, the cluster launches in the
normal Amazon Web Services cloud, outside of an Amazon VPC, if the account launching the cluster
supports EC2 Classic networks in the region where the cluster launches.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for clusters launched in an Amazon VPC.
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.
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 slave nodes.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave nodes.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 slave nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.JobFlowInstancesConfig.Builder additionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.