The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

  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

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

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

Parallel::MapReduce::Worker

COPYRIGHT AND LICENSE

Copyright 200[8] by Robert Barta, <drrho@cpan.org>

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