Parallel::MapReduce::Worker::SSH - MapReduce, remote worker via SSH


Parallel-MapReduce documentation  | view source Contained in the Parallel-MapReduce distribution.

Index


NAME

Top

Parallel::MapReduce::Worker::SSH - MapReduce, remote worker via SSH

SYNOPSIS

Top

  use Parallel::MapReduce::Worker::SSH;
  my $w = new Parallel::MapReduce::Worker::SSH (host => '10.0.10.2');

  # otherwise same interface as parent class Parallel::MapReduce::Worker

DESCRIPTION

Top

This subclass of Parallel::MapReduce::Worker implements a remote worker using SSH for launching and the resulting SSH tunnel for communicating.

By default, the package is trying an SSH client /usr/bin/ssh and is assuming that the Perl binary on the remote machine is /usr/bin/perl. Tweak the package variables $SSH and $PERL if these assumptions are wrong.

INTERFACE

Top

Constructor

The construct expects the following fields:

host (default: none)

At constructor time an SSH connection to the named host is attempted. Then a remote Perl program to implement the worker there is started. For this, obviously Parallel::MapReduce must be installed on the remote machine.

NOTE: Do not forget to call shutdown on an SSH worker, otherwise you will have a lot of lingering SSH connections.

SEE ALSO

Top

Parallel::MapReduce::Worker

COPYRIGHT AND LICENSE

Top


Parallel-MapReduce documentation  | view source Contained in the Parallel-MapReduce distribution.