Parallel::MapReduce::Worker::SSH - MapReduce, remote worker via SSH
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
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.
/usr/bin/ssh
/usr/bin/perl
$SSH
$PERL
The construct expects the following fields:
host
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.
Parallel::MapReduce
NOTE: Do not forget to call shutdown on an SSH worker, otherwise you will have a lot of lingering SSH connections.
shutdown
Parallel::MapReduce::Worker
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.
To install Parallel::MapReduce, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parallel::MapReduce
CPAN shell
perl -MCPAN -e shell install Parallel::MapReduce
For more information on module installation, please visit the detailed CPAN module installation guide.