Class JobFlowInstancesConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<JobFlowInstancesConfig.Builder,JobFlowInstancesConfig>
A description of the Amazon EC2 instance on which the cluster (job flow) runs. A valid JobFlowInstancesConfig must contain either InstanceGroups or InstanceFleets. They cannot be used together. You may also have MasterInstanceType, SlaveInstanceType, and InstanceCount (all three must be present), but we don't recommend this configuration.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionA list of additional Amazon EC2 security group IDs for the master node.A list of additional Amazon EC2 security group IDs for the core and task nodes.builder()final StringThe name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."final StringApplies to clusters that use the uniform instance group configuration.Applies to clusters that use the instance fleet configuration.final StringThe identifier of the Amazon EC2 security group for the master node.final StringThe identifier of the Amazon EC2 security group for the core and task nodes.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final StringApplies only to Amazon EMR release versions earlier than 4.0.final booleanFor responses, this returns true if the service returned a value for the AdditionalMasterSecurityGroups property.final booleanFor responses, this returns true if the service returned a value for the AdditionalSlaveSecurityGroups property.final booleanFor responses, this returns true if the service returned a value for the Ec2SubnetIds property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the InstanceFleets property.final booleanFor responses, this returns true if the service returned a value for the InstanceGroups property.final IntegerThe number of Amazon EC2 instances in the cluster.final List<InstanceFleetConfig> final List<InstanceGroupConfig> Configuration for the instance groups in a cluster.final BooleanSpecifies whether the cluster should remain available after completing all steps.final StringThe Amazon EC2 instance type of the master node.final PlacementTypeThe Availability Zone in which the cluster runs.static Class<? extends JobFlowInstancesConfig.Builder> final StringThe identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.final StringThe Amazon EC2 instance type of the core and task nodes.final BooleanSpecifies 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.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final BooleanIndicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
masterInstanceType
The Amazon EC2 instance type of the master node.
- Returns:
- The Amazon EC2 instance type of the master node.
-
slaveInstanceType
The Amazon EC2 instance type of the core and task nodes.
- Returns:
- The Amazon EC2 instance type of the core and task nodes.
-
instanceCount
The number of Amazon EC2 instances in the cluster.
- Returns:
- The number of Amazon EC2 instances in the cluster.
-
hasInstanceGroups
public final boolean hasInstanceGroups()For responses, this returns true if the service returned a value for the InstanceGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
instanceGroups
Configuration for the instance groups in a cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInstanceGroups()method.- Returns:
- Configuration for the instance groups in a cluster.
-
hasInstanceFleets
public final boolean hasInstanceFleets()For responses, this returns true if the service returned a value for the InstanceFleets property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
instanceFleets
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInstanceFleets()method.- Returns:
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
-
ec2KeyName
The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."
- Returns:
- The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."
-
placement
The Availability Zone in which the cluster runs.
- Returns:
- The Availability Zone in which the cluster runs.
-
keepJobFlowAliveWhenNoSteps
Specifies whether the cluster should remain available after completing all steps. Defaults to
false. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.- Returns:
- Specifies whether the cluster should remain available after completing all steps. Defaults to
false. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.
-
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.
- Returns:
- 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.
-
unhealthyNodeReplacement
Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.
- Returns:
- Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.
-
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
AmiVersionparameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.- Returns:
- 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
AmiVersionparameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.
-
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.
- Returns:
- 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.
-
hasEc2SubnetIds
public final boolean hasEc2SubnetIds()For responses, this returns true if the service returned a value for the Ec2SubnetIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
ec2SubnetIds
Applies to clusters that use the instance fleet configuration. When multiple Amazon 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 releases 4.8.0 and later, excluding 5.0.x versions.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEc2SubnetIds()method.- Returns:
- Applies to clusters that use the instance fleet configuration. When multiple Amazon 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 releases 4.8.0 and later, excluding 5.0.x versions.
-
emrManagedMasterSecurityGroup
The identifier of the Amazon EC2 security group for the master node. If you specify
EmrManagedMasterSecurityGroup, you must also specifyEmrManagedSlaveSecurityGroup.- Returns:
- The identifier of the Amazon EC2 security group for the master node. If you specify
EmrManagedMasterSecurityGroup, you must also specifyEmrManagedSlaveSecurityGroup.
-
emrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the core and task nodes. If you specify
EmrManagedSlaveSecurityGroup, you must also specifyEmrManagedMasterSecurityGroup.- Returns:
- The identifier of the Amazon EC2 security group for the core and task nodes. If you specify
EmrManagedSlaveSecurityGroup, you must also specifyEmrManagedMasterSecurityGroup.
-
serviceAccessSecurityGroup
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
- Returns:
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
-
hasAdditionalMasterSecurityGroups
public final boolean hasAdditionalMasterSecurityGroups()For responses, this returns true if the service returned a value for the AdditionalMasterSecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
additionalMasterSecurityGroups
A list of additional Amazon EC2 security group IDs for the master node.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalMasterSecurityGroups()method.- Returns:
- A list of additional Amazon EC2 security group IDs for the master node.
-
hasAdditionalSlaveSecurityGroups
public final boolean hasAdditionalSlaveSecurityGroups()For responses, this returns true if the service returned a value for the AdditionalSlaveSecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
additionalSlaveSecurityGroups
A list of additional Amazon EC2 security group IDs for the core and task nodes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalSlaveSecurityGroups()method.- Returns:
- A list of additional Amazon EC2 security group IDs for the core and task nodes.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<JobFlowInstancesConfig.Builder,JobFlowInstancesConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-