Created on 06-04-2021 12:44 PM - edited 09-16-2022 07:41 AM
Hello,
I have followed this guide:
https://docs.cloudera.com/documentation/enterprise/5-16-x/topics/cm_ag_change_hostnames.html
In order to change the hostname on my Cloudera single node CMS system. However, now none of my services will start. Everything is set to localhost (because its all on this one host). I notice that the old hostname is still referenced for the server...
Even though Hive, Hue, YARN, etc are all set to "localhost" for their databases my ZooKeeper server keeps thinking it's still the previous hostname.
How do I get rid of the hostname that is stuck in Cloudera Manager / ZooKeeper?
The only other thing I can think to do is remove the "Server Name override" for the ZooKeeper myid and then restart the service to see if it picks up the new hostname.
Created 06-07-2021 01:25 AM
@rjwiggins80 The most Important thing is check the config.ini file on host and see if there you have given the hostname correct (FQDN) in below section.
[General]
# Hostname of the CM server.
server_host=host-10-17-100-241.coe.cloudera.com
So stop whole cluster and mgmt services and then CM server. At last stop agent on host and change the above details and then start the agent and service respectively. CM should fetch new hostname.
Created 06-07-2021 01:25 AM
@rjwiggins80 The most Important thing is check the config.ini file on host and see if there you have given the hostname correct (FQDN) in below section.
[General]
# Hostname of the CM server.
server_host=host-10-17-100-241.coe.cloudera.com
So stop whole cluster and mgmt services and then CM server. At last stop agent on host and change the above details and then start the agent and service respectively. CM should fetch new hostname.