I'm trying to use the python client to do a POC with Ambari, but following the 
examples in the docs has led me to a problem that I can't figure out.  I set it 
up with the "Quick Start Guide" and the Ambari UI works perfectly on the 3-node 
cluster I have running on my machine.  I'm just attempting a basic create 
server call, but the server gives me a 400: Bad Request response no matter what 
I try.  Can anyone shed light on this?  I turned on DEBUG logging on the 
server, but there was still no actual details as to the problem in the logs.

This is my code:

from ambari_client.ambari_api import  AmbariClient
client = AmbariClient("c6401.ambari.apache.org", 8080, "admin", "admin", 
version=1)

mycluster = client.create_cluster("testcluster", "HDP-2.1")


Any ideas?

Greg

Reply via email to