NAME

Net::Amazon::HadoopEC2::Group - A class to manipulate EC2 security group for hadoop-ec2.

SYNOPSIS

# 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;

DESCRIPTION

A class to manipulate EC2 security group for hadoop-ec2.

METHODS

new ($hashref)

Constructor. The Arguments are:

name (required)

Name of the hadoop-ec2 group name.

aws_account_id (required)

Your aws account id.

web_ports (optional)

Specify 1 to enable web_ports. The default is 1.

ensure

Ensures there are suitable EC2 security groups to run the Hadoop-EC2 cluster. Returns true if it's ok.

find

Finds suitable EC2 security groups to run the Hadoop-EC2 cluster. Returns true if it's ok.

create

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.

remove

Removes EC2 security groups. Returns true if the process succeeded.

AUTHOR

Nobuo Danjou <nobuo.danjou@gmail.com>

SEE ALSO

Net::Amazon::HadoopEC2

Net::Amazon::EC2