
Net::Amazon::HadoopEC2 - perl interface to work with Hadoop-EC2

my $hadoop = Net::Amazon::HadoopEC2->new(
{
aws_account_id => 'your_aws_account',
aws_access_key_id => 'your_key',
aws_secret_access_key => 'your_secret',
}
);
my $cluster = $hadoop->launch_cluster(
{
name => 'hadoop',
image_id => 'ami-b0fe1ad9',
slaves => 2,
}
);
my $result = $cluster->execute({command => 'ls'});
warn $result->stdout;
$cluster->terminate_cluster;

This module is perl interface to work with Hadoop-EC2.

Constructor. Arguments are:
Your aws access key.
Your aws secret key.
Your aws account id.
launchs hadoop-ec2 cluster. Returns Net::Amazon::HadoopEC2::Cluster instance if launch process succeeded. Arguments are:
Name of the cluster.
The image id (ami) of the cluster.
The key name to use when launching cluster. the default is 'gsg-keypair'.
Location of the private key file associated with key_name.
The number of slaves. The default is 2.
Boolean whether EC2 api request retry or not. The default is 1.
MAX_MAP_TASKS to pass to the instances when boot. The default is 2.
MAX_REDUCE_TASKS to pass to the instances when boot. The default is 2.
COMPRESS to pass to the instances when boot. The default is 1.
finds running cluster satisfying the conditions given by the arguments. Returns Net::Amazon::HadoopEC2::Cluster instance if found. Arguments are:
Name of the cluster.
Location of the private key file to login to the cluster instances.

Nobuo Danjou <nobuo.danjou@gmail.com>

Hadoop - http://hadoop.apache.org/
Hadoop Wiki, AmazonEC2 http://wiki.apache.org/hadoop/AmazonEC2

svn co http://svn.coderepos.org/share/lang/perl/Net-Amazon-HadoopEC2/trunk Net-Amazon-HadoopEC2
The svn repository of this module is hosted at http://coderepos.org/share/. Patches and commits are welcome.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.