Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-18-2017 05:55 AM
our 3 master machines was crashed , and we build new 3 masters machines ( without to delete the workers )
so now we need to re-add the current workers to the cluster
when we add the workers machine to the ambari cluster we stuck in point that wizard tell us the worker already installed
how to solve this issuie from this point ?
Created 10-18-2017 10:13 AM
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://{your_ambari_server}:8080/api/v1/clusters/{your_cluster_name}/hosts/{dead_host}
Example
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://test.co.uk:8080/api/v1/clusters/hdp26/hosts/datanode2
Created 10-18-2017 06:21 AM
Check /etc/hosts of the Ambari server and make sure the old entries are removed ,realce with the new one.
DELETE all host components mapped to this host in this case DATANODE
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/DATANODE DELETE the host
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME
And you will need to restart all stale config
Created 10-18-2017 08:50 AM
regarding to two API , can you give me example , because I not sure if some of them need to set as values or should be as default
Created 10-18-2017 08:58 AM
another question , as you know all workers are not appears cluster ( because all master machines are new ) , so not understand how we can use the API in that case
Created 10-18-2017 10:13 AM
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://{your_ambari_server}:8080/api/v1/clusters/{your_cluster_name}/hosts/{dead_host}
Example
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://test.co.uk:8080/api/v1/clusters/hdp26/hosts/datanode2