| Net-Amazon-HadoopEC2 documentation | view source | Contained in the Net-Amazon-HadoopEC2 distribution. |
Net::Amazon::HadoopEC2::Group - A class to manipulate EC2 security group for hadoop-ec2.
# instanciate
my $group = Net::Amazon::HadoopEC2::Group->new(
{
aws_account_id => 'your id',
name => 'hadoop-ec2-test',
}
);
# creates the security group
$group->create unless $group->find;
# this is equivalent to below:
$group->ensure;
# removes the security group
$group->remove;
A class to manipulate EC2 security group for hadoop-ec2.
Constructor. The Arguments are:
Name of the hadoop-ec2 group name.
Your aws account id.
Specify 1 to enable web_ports. The default is 1.
Ensures there are suitable EC2 security groups to run the Hadoop-EC2 cluster. Returns true if it's ok.
Finds suitable EC2 security groups to run the Hadoop-EC2 cluster. Returns true if it's ok.
Creates two EC2 security groups to run the Hadoop-EC2 cluster; one is for slaves, the ather is for master. Returns true if the creation succeeded.
Removes EC2 security groups. Returns true if the process succeeded.
Nobuo Danjou <nobuo.danjou@gmail.com>
| Net-Amazon-HadoopEC2 documentation | view source | Contained in the Net-Amazon-HadoopEC2 distribution. |