Net::Hadoop::HuahinManager - Client library for Huahin Manager.
use Net::Hadoop::HuahinManager; my $client = Net::Hadoop::HuahinManager->new(server => 'manager.local'); my $all_jobs = $client->list(); my $failed_jobs = $client->list('failed'); my $status = $client->status($jobid); my $detail = $client->detail($jobid); $client->kill($jobid) or die "failed to kill jobid: $jobid";
This module is for systems with Huahin Manager, REST API proxy tool for Hadoop JobTracker.
About Huahin Manager: http://huahin.github.com/huahin-manager/
At just now, Net::Hadoop::HuahinManager supports only list/status/kill (not register).
Net::Hadoop::HuahinManager class method and instance methods.
Net::Hadoop::HuahinManager->new( %args ) :Net::Hadoop::HuahinManager
Creates and returns a new client instance with %args, might be:
$client->list( [ $op ] ) :ArrayRef
Get list of jobs and returns these as arrayref.
$client->status( $jobid ) :HashRef
Gets job status specified by $jobid string, and returns it.
$client->detail( $jobid ) :HashRef
Gets job detail status specified by $jobid string, and returns it.
$client->kill( $jobid ) :Bool
Kill the job of $jobid.
$client->kill_by_name( $jobname ) :Bool
Kill the job specified by job name $jobname.
TAGOMORI Satoshi <tagomoris {at} gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Hadoop::HuahinManager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Hadoop::HuahinManager
CPAN shell
perl -MCPAN -e shell install Net::Hadoop::HuahinManager
For more information on module installation, please visit the detailed CPAN module installation guide.