I am trying to add one node to my ambari cluster using blue print API which is created using ambari UI. I created blue print and try to add the node to the host group using ambari blue print REST API as below.
"status" : 400,
"message" : "Topology validation failed: org.apache.ambari.server.topology.InvalidTopologyException: Unable to retrieve cluster topology for cluster. This is most likely a result of trying to scale a cluster via the API which was created using the Ambari UI. At this time only clusters created via the API using a blueprint can be scaled with this API. If the cluster was originally created via the API as described above, please file a Jira for this matter."
Is it not possible to add node to cluster created using ambari UI ? Is there any other way for the same ?
Make sure the agents all start successfully do this on all the hosts you intend to add to the cluster, then on the Ambari UI when running the add host step choose the manual registration, add your new hostname and proceed all should succeed.
Ambari Agent can be installed on a number of target hosts via the Ambari REST API if the hosts have been set up for passwordless SSH (as root or a sudo account) with a common SSH key.
See below for an example ("user" is the SSH user account).