centos - Changing hostnames in added hosts in Ambari server? -
in ambari server have added 7 slaves master, problem had changed hostnames on slaves, therefore master node cannot identify slaves now.
so can me changed hostnames added?
thank you.
as of ambari 2.2.2 can change hostnames using ambari-server update-host-names <hostnames.json>
the basic steps are:
- back ambari db
- disable kerberos
- stop ambari-server , ambari-agent on hosts
- create hostnames.json map old names new names. example:
{"clustername":{"oldhost1.example.com":"newhost1.example.com","oldhost2.example.com":"newhost2.example.com"}}
- on ambari server:
ambari-server update-host-names hostnames.json
- updates hostnames on nodes
- if hostname of ambari server changed, update
ambari-agent.ini
on every ambari agent node - on ambari server:
ambari-server start
- on agents:
ambari-agent start
- re-enable kerberos if needed
Comments
Post a Comment