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
Net::Amazon::EC2
To install Net::Amazon::HadoopEC2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Amazon::HadoopEC2
CPAN shell
perl -MCPAN -e shell install Net::Amazon::HadoopEC2
For more information on module installation, please visit the detailed CPAN module installation guide.