JobFlowInstancesConfig class
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.
Constructors
-
JobFlowInstancesConfig({List<
String> ? additionalMasterSecurityGroups, List<String> ? additionalSlaveSecurityGroups, String? ec2KeyName, String? ec2SubnetId, List<String> ? ec2SubnetIds, String? emrManagedMasterSecurityGroup, String? emrManagedSlaveSecurityGroup, String? hadoopVersion, int? instanceCount, List<InstanceFleetConfig> ? instanceFleets, List<InstanceGroupConfig> ? instanceGroups, bool? keepJobFlowAliveWhenNoSteps, String? masterInstanceType, PlacementType? placement, String? serviceAccessSecurityGroup, String? slaveInstanceType, bool? terminationProtected})
Properties
-
additionalMasterSecurityGroups
→ List<
String> ? -
A list of additional Amazon EC2 security group IDs for the master node.
final
-
additionalSlaveSecurityGroups
→ List<
String> ? -
A list of additional Amazon EC2 security group IDs for the core and task
nodes.
final
- ec2KeyName → String?
-
The name of the EC2 key pair that can be used to connect to the master node
using SSH as the user called "hadoop."
final
- ec2SubnetId → String?
-
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.
final
-
ec2SubnetIds
→ List<
String> ? -
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.
final
- emrManagedMasterSecurityGroup → String?
-
The identifier of the Amazon EC2 security group for the master node.
final
- emrManagedSlaveSecurityGroup → String?
-
The identifier of the Amazon EC2 security group for the core and task nodes.
final
- hadoopVersion → String?
-
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.final - hashCode → int
-
The hash code for this object.
no setterinherited
- instanceCount → int?
-
The number of EC2 instances in the cluster.
final
-
instanceFleets
→ List<
InstanceFleetConfig> ? -
final
-
instanceGroups
→ List<
InstanceGroupConfig> ? -
Configuration for the instance groups in a cluster.
final
- keepJobFlowAliveWhenNoSteps → bool?
-
Specifies whether the cluster should remain available after completing all
steps.
final
- masterInstanceType → String?
-
The EC2 instance type of the master node.
final
- placement → PlacementType?
-
The Availability Zone in which the cluster runs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceAccessSecurityGroup → String?
-
The identifier of the Amazon EC2 security group for the Amazon EMR service
to access clusters in VPC private subnets.
final
- slaveInstanceType → String?
-
The EC2 instance type of the core and task nodes.
final
- terminationProtected → bool?
-
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.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited