Created 01-06-2017 08:41 AM
Hello,
I want to use commands lines to know number of yarn jobs in a cluster HDP.
can i do that with ambari api rest?
Thanks
Created 01-06-2017 09:18 AM
Are you looking out for following kind of information's to get via Ambari APIs (Which we see in the Ambari YARN Summary Page) ?
.Submitted Apps:
. Pending Apps
.Running Apps
Here "erie1.example.com" is ambari server hostname.
Similarly you can get the Completed/Killed/Failed application informations.
.
Created 01-06-2017 09:18 AM
Are you looking out for following kind of information's to get via Ambari APIs (Which we see in the Ambari YARN Summary Page) ?
.Submitted Apps:
. Pending Apps
.Running Apps
Here "erie1.example.com" is ambari server hostname.
Similarly you can get the Completed/Killed/Failed application informations.
.
Created 01-06-2017 09:49 AM
Created 01-06-2017 09:51 AM
Following link gives a good idea about various Ambari Rest API uris:
https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md
Created 01-06-2017 09:54 AM
Thanks
Created 01-06-2017 09:30 AM
Apart from Ambari API, If you are open for other API options then you might want to take a look at the Resource Manager Rest APIs as well:
https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html
Example: