Hadoop::Admin - Module for administration of Hadoop clusters
version 0.4
use Hadoop::Admin; my $cluster=Hadoop::Admin->new({ 'namenode' => 'namenode.host.name', 'jobtracker' => 'jobtracker.host.name', }); print $cluster->datanode_live_list();
This module connects to Hadoop servers using http. The JMX Proxy Servlet is queried for specific mbeans.
This module requires Hadoop the changes in https://issues.apache.org/jira/browse/HADOOP-7144. They are available in versions 0.20.204.0, 0.23.0 or later.
Create a new instance of the Hadoop::Admin class.
The method requires a hash containing at minimum one of the namenode's, the resourcemanager's, and the jobtracker's hostnames. Optionally, you may provide a socksproxy for the http connection. Use of both a jobtracker and resourcemanger is prohibited. It is not a valid cluster configuration to have both a jobtracker and a resourcemanager.
Creation of this object will cause an immediate querry to servers provided to the constructor.
Returns a list of the current live DataNodes.
Array containing hostnames.
Returns a list of the current dead DataNodes.
Returns a list of the currently decommissioning DataNodes.
Returns a list of the current live NodeManagers.
Returns a list of the current live TaskTrackers.
Returns a list of the current blacklisted TaskTrackers.
Returns a list of the current graylisted TaskTrackers.
None known at this time. Please log issues at:
https://github.com/cwimmer/hadoop-admin/issues
Source code is available on GitHub:
https://github.com/cwimmer/hadoop-admin
Module available on CPAN as Hadoop::Admin:
http://search.cpan.org/~cwimmer/
Charles A. Wimmmer (charles@wimmer.net)
This software is Copyright (c) 2012 by Charles A. Wimmer.
This is free software, licensed under:
The (three-clause) BSD License
To install Hadoop::Admin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hadoop::Admin
CPAN shell
perl -MCPAN -e shell install Hadoop::Admin
For more information on module installation, please visit the detailed CPAN module installation guide.