- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
REST API to get individual HDP component version
- Labels:
-
Apache Ambari
Created 04-08-2016 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello folks,
could you please help me getting the REST API to get individual HDP component versions. The most most close detail I got was through following but it does not give me the version details :-
"href" : "http://192.168.100.130:8080/api/v1/clusters/MyCluster/hosts/ambari.dn2.local/host_components/PIG", "HostRoles" : { "cluster_name" : "MyCluster", "component_name" : "PIG", "desired_stack_id" : "HDP-2.3", "desired_state" : "INSTALLED", "hdp_version" : "HDP-2.3.4.0-3485", "host_name" : "ambari.dn2.local", "maintenance_state" : "OFF", "service_name" : "PIG", "stack_id" : "HDP-2.3", "stale_configs" : false, "state" : "INSTALLED", "upgrade_state" : "NONE",
Created 04-08-2016 12:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
http://<ambari-server>:8080/api/v1/stacks/<your stack>/versions/<your-version>/services/FALCON
For example:
http://sb133:8080/api/v1/stacks/HDP/versions/2.4/services/FALCON
Created 04-08-2016 12:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
http://<ambari-server>:8080/api/v1/stacks/<your stack>/versions/<your-version>/services/FALCON
For example:
http://sb133:8080/api/v1/stacks/HDP/versions/2.4/services/FALCON
Created 04-08-2016 05:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Mats Johansson , this served my purpose.
Created 04-08-2016 07:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also refer to https://cwiki.apache.org/confluence/display/AMBARI/API+usage+scenarios%2C+troubleshooting%2C+and+oth... for other REST API usage scenarios.
