Robert Barta > Parallel-MapReduce > Parallel::MapReduce::Worker::SSH

Download:
Parallel-MapReduce-0.09.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

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.

syntax highlighting: