I have found the payload that I could use to post the "recommendations" 
resource.
The question on "Ambari Groovy Client" vs "Standard Rest Client" still is open. 
Please suggest based on your experience which one is recommended for java based 
integration to manage Ambari clusters.
RegardsVijay 


     On Thursday, April 30, 2015 3:23 PM, Vijay Srinivasaraghavan 
<[email protected]> wrote:
   

 Hello,
What is the best way to access Ambari REST endpoint from java based 
application?  - Using Ambari Groovy Client ("ambari-client" project) or 
standard java rest client?
I am trying to use Blueprint to provision cluster and would like to use the 
stack advisior implementation to derive the host group and service mapping. I 
don't see the correspodning API implementation in the Ambari groovy client code.

If I were to directly call the rest API that uses stack advisor 
(http://<IP>:8080/api/v1/stacks/HDP/versions/2.2/recommendations/), I don't 
know what to pass in the POST payload request as I don't see any documentation 
on this.
Appreciate your inputs.
RegardsVijay  

  
  • Ambari REST API Vijay Srinivasaraghavan
    • Re: Ambari REST API Vijay Srinivasaraghavan

Reply via email to