NAME
Net::Hadoop::YARN::ResourceManager
VERSION
version 0.203
SYNOPSIS
my $rm = Net::Hadoop::YARN::ResourceManager->new;
DESCRIPTION
Perl interface to the YARN Resource Manager REST API.
METHODS
active_rm
Returns the active RM hostname in the HA-pair.
my $host_port = $rm->active_rm;
my $host = $rm->active_rm({ hostname_only => 1 });
This function is an extension in the module and not a part of the REST API.
info
Cluster Information API
metrics
Cluster Metrics API
scheduler
Cluster Scheduler API
apps
Cluster Applications API
params
params can be either a hash / hashref (options) to get a list, or an appid (scalar) to get details on a specific app, but not both (no options accepted when an app id is given)
- state
-
[deprecated] - state of the application
- states
-
applications matching the given application states, specified as a comma-separated list.
- finalStatus
-
the final status of the application - reported by the application itself
- user
-
user name
- queue
-
queue name
- limit
-
total number of app objects to be returned
- startedTimeBegin
-
applications with start time beginning with this time, specified in ms since epoch
- startedTimeEnd
-
applications with start time ending with this time, specified in ms since epoch
- finishedTimeBegin
-
applications with finish time beginning with this time, specified in ms since epoch
- finishedTimeEnd
-
applications with finish time ending with this time, specified in ms since epoch
- applicationTypes
-
applications matching the given application types, specified as a comma-separated list.
- applicationTags
-
applications matching any of the given application tags, specified as a comma-separated list.
attempts
Cluster Application Attempts API : get attempts details on a specific task
appattempts
appstatistics
Cluster Application Statistics API
- states
-
states of the applications, specified as a comma-separated list. If states is not provided, the API will enumerate all application states and return the counts of them.
- applicationTypes
-
types of the applications, specified as a comma- separated list. If applicationTypes is not provided, the API will count the applications of any application type. In this case, the response shows * to indicate any application type. Note that we only support at most one applicationType temporarily. Otherwise, users will expect an BadRequestException.
nodes
Cluster Nodes API & Cluster Node API: can be either for all nodes, or for a single one (no options in that case)
Cluster Writeable APIs
Currently in alpha, not implemented in this class
- Cluster New Application API
- Cluster Applications API(Submit Application)
- Cluster Application State API
- Cluster Delegation Tokens API
SEE ALSO
https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html.
AUTHOR
David Morel <david.morel@amakuru.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by David Morel & Booking.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.