The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Apache::Hadoop::Watcher::Yarn - extracts Hadoop Yarn runtime information

SYNOPSIS

  use Apache::Hadoop::Watcher;
  
  my $w = Apache::Hadoop::Watcher::Yarn->new;
  $w->request(service=>'nodemanager', context=>'info')->print;

DESCRIPTION

  There are 4 services and a list of contexts for each service. This
  provide information about hosts, cluster, jobs and tasks from Yarn.
  The services are 

        foreach my $service (keys %{$w->options->get}) {
                print $service,"\n";
        }

  The context options for a service can be listed as below:

        my $service='nodemanager';
        foreach my $context (keys %{$w->options(service=>$service)->get}) {
                print $context,"\n";
        }

  For the entire query list dump:

        $w->options->print;

  

SEE ALSO

Apache::Hadoop::Watcher Apache::Hadoop::Watcher::Base Apache::Hadoop::Watcher::Conf Apache::Hadoop::Watcher::Jmx

AUTHOR

Snehasis Sinha, <snehasis@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2015 by Snehasis Sinha

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.