Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Is there an way to get the number of Apps completed by YARN in last 24 hours using ambari rest API

Is there an way to get the number of Apps completed by YARN in last 24 hours using ambari rest API

Expert Contributor

We are trying to build an dashboard with basic info and need info on Apps complete in last 24 hours or previous day. We are pulling the data from Ambari rest API. what fields and timing parameters would fetch me the above results. We are on Ambari 1.7

2 REPLIES 2
Highlighted

Re: Is there an way to get the number of Apps completed by YARN in last 24 hours using ambari rest API

you can take the help of yarn rm rest api to know the application matrics, please take a help of cluster matrics api

https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html

you can also take help of application Timeline server(ATS) rest api if ATS is enabled in your case

sample request to get all applications

http://<hostname>:8188/ws/v1/applicationhistory/apps

Highlighted

Re: Is there an way to get the number of Apps completed by YARN in last 24 hours using ambari rest API

Expert Contributor

We have only Ambari rest api ports accessible outside firewall. Ambari rest API provides details of apps completed when RESOURCEMANAGER service is queried for metrics. I need apps completed in last 24 hours and I am looking for specific query.

Don't have an account?
Coming from Hortonworks? Activate your account here