Created on 11-06-2017 12:11 PM - edited 09-16-2022 05:29 AM
Hi Guys,
I have Follow all the step that were needed to decommission a node.
but after all steps :
1. Decommission the services
2. Delete Host from Cluster
3. Delete all packages that were installed.
but when i write the command :
"Cat /etc/Host"
that specific node "Node1" still appearing in the list ?
is that ok or i have missing something ?
NOTE : Particular Node "Node1" successfully removed from the list of Ambari Hosts.
Created 11-06-2017 02:44 PM
Ambari does not manage /etc/hosts file. You should manually delete the entry from /etc/hosts file. If you want to see if the host is deleted or not , you can call Ambari REST api and check the response
curl -k -u {username}:{password} -H "X-Requested-By:ambari" http://{ambari-host}:{ambari-port}/api/v1/hosts
If the above call doesn't return the deleted host , then you can confirm that the host is deleted.
Thanks,
Aditya
Created 11-06-2017 02:44 PM
Ambari does not manage /etc/hosts file. You should manually delete the entry from /etc/hosts file. If you want to see if the host is deleted or not , you can call Ambari REST api and check the response
curl -k -u {username}:{password} -H "X-Requested-By:ambari" http://{ambari-host}:{ambari-port}/api/v1/hosts
If the above call doesn't return the deleted host , then you can confirm that the host is deleted.
Thanks,
Aditya
Created 11-07-2017 11:16 AM
Thanks @Aditya Sirna
it Works 🙂
Created 11-07-2017 11:18 AM
Glad that it worked. Can you please close this thread my marking it as accepted. This will be really useful for the community.
Created 11-07-2017 11:21 AM
I have accept you answer but not know how to close the thread ?
Created 11-07-2017 11:23 AM
Accepting the answer will do it. Thanks 🙂