Class Ec2InstanceAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of additional Amazon EC2 security group IDs for the master node.A list of additional Amazon EC2 security group IDs for the slave nodes.The Availability Zone in which the cluster will run.The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch.The identifier of the Amazon EC2 security group for the master node.The identifier of the Amazon EC2 security group for the slave nodes.The IAM role that was specified when the job flow was launched.The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.int
hashCode()
void
setAdditionalMasterSecurityGroups
(Collection<String> additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.void
setAdditionalSlaveSecurityGroups
(Collection<String> additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the slave nodes.void
setEc2AvailabilityZone
(String ec2AvailabilityZone) The Availability Zone in which the cluster will run.void
setEc2KeyName
(String ec2KeyName) The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".void
setEc2SubnetId
(String ec2SubnetId) To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch.void
setEmrManagedMasterSecurityGroup
(String emrManagedMasterSecurityGroup) The identifier of the Amazon EC2 security group for the master node.void
setEmrManagedSlaveSecurityGroup
(String emrManagedSlaveSecurityGroup) The identifier of the Amazon EC2 security group for the slave nodes.void
setIamInstanceProfile
(String iamInstanceProfile) The IAM role that was specified when the job flow was launched.void
setServiceAccessSecurityGroup
(String serviceAccessSecurityGroup) The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.toString()
Returns a string representation of this object; useful for testing and debugging.withAdditionalMasterSecurityGroups
(String... additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.withAdditionalMasterSecurityGroups
(Collection<String> additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.withAdditionalSlaveSecurityGroups
(String... additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the slave nodes.withAdditionalSlaveSecurityGroups
(Collection<String> additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the slave nodes.withEc2AvailabilityZone
(String ec2AvailabilityZone) The Availability Zone in which the cluster will run.withEc2KeyName
(String ec2KeyName) The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".withEc2SubnetId
(String ec2SubnetId) To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch.withEmrManagedMasterSecurityGroup
(String emrManagedMasterSecurityGroup) The identifier of the Amazon EC2 security group for the master node.withEmrManagedSlaveSecurityGroup
(String emrManagedSlaveSecurityGroup) The identifier of the Amazon EC2 security group for the slave nodes.withIamInstanceProfile
(String iamInstanceProfile) The IAM role that was specified when the job flow was launched.withServiceAccessSecurityGroup
(String serviceAccessSecurityGroup) The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
-
Constructor Details
-
Ec2InstanceAttributes
public Ec2InstanceAttributes()
-
-
Method Details
-
setEc2KeyName
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
- Parameters:
ec2KeyName
- The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
-
getEc2KeyName
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
- Returns:
- The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
-
withEc2KeyName
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
- Parameters:
ec2KeyName
- The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2SubnetId
To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.
- Parameters:
ec2SubnetId
- To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.
-
getEc2SubnetId
To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.
- Returns:
- To launch the job flow in Amazon VPC, set this parameter to the
identifier of the Amazon VPC subnet where you want the job flow
to launch. If you do not specify this value, the job flow is
launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.
-
withEc2SubnetId
To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.
- Parameters:
ec2SubnetId
- To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2AvailabilityZone
The Availability Zone in which the cluster will run.
- Parameters:
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.
-
getEc2AvailabilityZone
The Availability Zone in which the cluster will run.
- Returns:
- The Availability Zone in which the cluster will run.
-
withEc2AvailabilityZone
The Availability Zone in which the cluster will run.
- Parameters:
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamInstanceProfile
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
- Parameters:
iamInstanceProfile
- The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
-
getIamInstanceProfile
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
- Returns:
- The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
-
withIamInstanceProfile
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
- Parameters:
iamInstanceProfile
- The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEmrManagedMasterSecurityGroup
The identifier of the Amazon EC2 security group for the master node.
- Parameters:
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master node.
-
getEmrManagedMasterSecurityGroup
The identifier of the Amazon EC2 security group for the master node.
- Returns:
- The identifier of the Amazon EC2 security group for the master node.
-
withEmrManagedMasterSecurityGroup
public Ec2InstanceAttributes withEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup) The identifier of the Amazon EC2 security group for the master node.
- Parameters:
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEmrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the slave nodes.
- Parameters:
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave nodes.
-
getEmrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the slave nodes.
- Returns:
- The identifier of the Amazon EC2 security group for the slave nodes.
-
withEmrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the slave nodes.
- Parameters:
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceAccessSecurityGroup
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
- Parameters:
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
-
getServiceAccessSecurityGroup
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.
-
withServiceAccessSecurityGroup
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
- Parameters:
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAdditionalMasterSecurityGroups
A list of additional Amazon EC2 security group IDs for the master node.
- Returns:
- A list of additional Amazon EC2 security group IDs for the master node.
-
setAdditionalMasterSecurityGroups
A list of additional Amazon EC2 security group IDs for the master node.
- Parameters:
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.
-
withAdditionalMasterSecurityGroups
public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(String... additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalMasterSecurityGroups(java.util.Collection)
orwithAdditionalMasterSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAdditionalMasterSecurityGroups
public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.
- Parameters:
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAdditionalSlaveSecurityGroups
A list of additional Amazon EC2 security group IDs for the slave nodes.
- Returns:
- A list of additional Amazon EC2 security group IDs for the slave nodes.
-
setAdditionalSlaveSecurityGroups
A list of additional Amazon EC2 security group IDs for the slave nodes.
- Parameters:
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.
-
withAdditionalSlaveSecurityGroups
public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the slave nodes.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalSlaveSecurityGroups(java.util.Collection)
orwithAdditionalSlaveSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAdditionalSlaveSecurityGroups
public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the slave nodes.
- Parameters:
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-