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
$PERL if these assumptions are wrong.
The construct expects the following fields:
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.
Copyright 200 by Robert Barta, <firstname.lastname@example.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.