[ 
https://issues.apache.org/jira/browse/AMBARI-14455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15075018#comment-15075018
 ] 

Vitaly Brodetskyi commented on AMBARI-14455:
--------------------------------------------

[[email protected]]. Here is modified steps(from your comment) for 
host names update, which include NN HA enabled.

1. Stop all pending commands/jobs
2. Stop all services via Ambari
3. Backup Ambari db.
4. ssh master1 and stop ambari-server and all ambari-agents
5. Create json file with the host names changes.
{code}
{
 "VM4C8" : {
                "selena1.labs.teradata.com" : 
"hostnamechange1.labs.teradata.com", 
                "selena2.labs.teradata.com" : 
"hostnamechange2.labs.teradata.com",
                "selena3.labs.teradata.com" : 
"hostnamechange3.labs.teradata.com",
                "selena4.labs.teradata.com" : 
"hostnamechange4.labs.teradata.com",
                "selena5.labs.teradata.com" : 
"hostnamechange5.labs.teradata.com", 
                "selena6.labs.teradata.com" : 
"hostnamechange6.labs.teradata.com",
                "selena8.labs.teradata.com" : 
"hostnamechange8.labs.teradata.com"
                }
}
{code}
6.Execute command on the ambari-server hosts (master1):
{code}
ambari-server update-host-names host_names_changes.json
{code}
7. Change etc/hosts, hostname, /etc/HOSTNAME on all nodes according to changes 
that added to json file
8. Change 'ambari-agent.ini' file hostname field with new hostname
{code}
hostname=hostnamechange1.labs.teradata.com
{code}
9. Start ambar-server and all ambari-agents

Follow these two(#10, #11) steps if you have NN HA enabled:
10. Start ZK service, and then ZKFC components.
11. Execute this command on both hosts with NameNode hdfs zkfc -formatZK -force

12. Using ambari UI, start all services.
 

> After changing the hostname on the HA cluster the ZKFC's metadata still uses 
> old hostname.
> ------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-14455
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14455
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Irina Easterling
>            Assignee: Vitaly Brodetskyi
>             Fix For: 2.2.1
>
>
> After changing the hostname to be new on the HA cluster the ZKFC's metadata 
> still uses old hostname.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to