1.

What Is The Process Of Creating Ambari Client?

Answer»

The FOLLOWING CODE will do help you to CREATE an AMBARI client:

from ambari_client.ambari_api import AmbariClient

headers_dict={'X-Requested-By':'mycompany'} #Ambari needs X-Requested-By header

client = AmbariClient("localhost", 8080, "ADMIN", "admin", version=1,http_header=headers_dict)

print client.version

print client.host_url

print"n"

The following code will do help you to create an Ambari client:

from ambari_client.ambari_api import AmbariClient

headers_dict={'X-Requested-By':'mycompany'} #Ambari needs X-Requested-By header

client = AmbariClient("localhost", 8080, "admin", "admin", version=1,http_header=headers_dict)

print client.version

print client.host_url

print"n"



Discussion

No Comment Found