Net::Hadoop::YARN::Roles::AppMasterHistoryServer
version 0.203
The methods below work the same in Net::Hadoop::YARN::ApplicationMaster and Net::Hadoop::YARN::HistoryServer, to the exception that the App Master ones need an application ID as a first parameter. Methods take arguments in a list ordered according to the endpoint URL mentioned.
Jobs API
for the appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs
for the history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}
history: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}
http://<proxy http address:port>/proxy/application_1326232085508_0004/ws/v1/mapreduce/jobs/{jobid}
NOTE the documentation gives a wrong address for the appmaster version
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/jobattempts
history server: http://<history server http address:port>/ws/v1/history/jobs/{jobid}/jobattempts
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/counters
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/counters
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/conf
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/conf
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks/{taskid}
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/counters
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks/{taskid}/counters
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts
NOTE: documentation misses the ending s for attempts
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}
history server: http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}/counters
appmaster: http://<proxy http address:port>/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}/counters
David Morel <david.morel@amakuru.net>
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.
To install Net::Hadoop::YARN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Hadoop::YARN
CPAN shell
perl -MCPAN -e shell install Net::Hadoop::YARN
For more information on module installation, please visit the detailed CPAN module installation guide.