Managing a cluster using Ambari API