Support Questions
Find answers, ask questions, and share your expertise

remove hosts and make new cluster after renaming

Highlighted

remove hosts and make new cluster after renaming

Explorer

I found it necessary to troubleshoot a problem enabling kerberos to modify the ambari server and cluster boxes /etc/hostname from name.example.com to name.corp.example.com

I also edited the /etc/hosts on all to reflect accordingly.

I also ran ambari-server setup-security and option 1 to DISABLE the https.

How do I remove current host which are still named without *.corp.* and remake my cluster please? thanks!

6 REPLIES 6
Highlighted

Re: remove hosts and make new cluster after renaming

Super Mentor
Highlighted

Re: remove hosts and make new cluster after renaming

Super Mentor

@Tom Burke

Similarly in order to permantly delete OLD unwanted hosts from Ambari DB please check the following article:

https://community.hortonworks.com/content/supportkb/155423/how-to-remove-an-existing-host-in-ambari-...

.

But before manipulating the Ambari DB manually better to take a fresh Ambari DB dump so that you have back to revert back.

Highlighted

Re: remove hosts and make new cluster after renaming

Explorer

ambari-db-admin.pngIs there a default passwd for ambari sql? we use backend postgre but I do nto know what the passwd is for the DB.

Highlighted

Re: remove hosts and make new cluster after renaming

Explorer

referencing your first link....

seems outdated from UI ....there is no Ambari Web ...Background Services as far as I can tell it is done with Host menu Actionshost-rename-issue1.pdf.... I cannot stop components, see attached.

Highlighted

Re: remove hosts and make new cluster after renaming

Explorer
# ambari-server update-host-names host_names_changes.json
Using python  /usr/bin/python
Updating host names
Please, confirm Ambari services are stopped [y/n] (n)? y
Please, confirm there are no pending commands on cluster [y/n] (n)? y
Please, confirm you have made backup of the Ambari db [y/n] (n)? y
ERROR: Error executing update host names, please check the server logs.
ERROR: Exiting with exit code 1.
REASON: Host names update failed.



Host name change failed using this method.

Re: remove hosts and make new cluster after renaming

Super Mentor

@Tom Burke

Please share the "host_names_changes.json" file and "ambari-server.log" so that we can check if the JSOn file is correct and to know what error exactly appeared inside the ambari logs.

Don't have an account?