Nobuo Danjou > Net-Amazon-HadoopEC2-0.02 > Net::Amazon::HadoopEC2::SSH

Download:
Net-Amazon-HadoopEC2-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Net::Amazon::HadoopEC2::SSH - Net::SSH::Perl wrapper for Net::Amazon::HadoopEC2

DESCRIPTION ^

This module is Net::SSH::Perl wrapper for Net::Amazon::HadoopEC2.

METHODS ^

new ($hashref)

Constructor. Arguments are:

host (required)

Host to connect to.

key_file (required)

Private key file to use with ssh connection.

retry_max (optional)

Maximum count of retry to connect. The default is 5.

execute ($hashref)

Runs command on the master instance via ssh. Returns Net::Amazon::HadoopEC2::SSH::Response instance. This is only wrapper of Net::SSH::Perl. Arguments are:

command (required)

The command line to pass.

stdin (optional)

String to pass to STDIN of the command.

push_files ($hashref)

Pushes local files to hadoop-ec2 master instance via ssh. Returns true if succeeded. Arguments are:

files (required)

files to push. Accepts string or arrayref of strings.

destination (required)

Destination of the files.

get_files ($hashref)

Gets files on the hadoop-ec2 master instance. Returns true if succeeded. Arguments are:

files (required)

files to get. String and arrayref of strings is ok.

destination (required)

local path to place the files.

AUTHOR ^

Nobuo Danjou nobuo.danjou@gmail.com

SEE ALSO ^

Net::Amazon::HadoopEC2

Net::SSH::Perl

syntax highlighting: