[
https://issues.apache.org/jira/browse/AMBARI-14410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15061162#comment-15061162
]
Irina Easterling commented on AMBARI-14410:
-------------------------------------------
Steps to reproduce:
Cluster configuration:
{code}
CLUSTERNAME='N91'
MASTER1=N9-1-1.labs.teradata.com
MASTER2=N9-1-2.labs.teradata.com
DATANODE1=N9-1-3.labs.teradata.com
DATANODE2=N9-1-4.labs.teradata.com
DATANODE3=N9-1-5.labs.teradata.com
{code}
etc/hosts file
{code}
39.0.8.1 N9-1-1.labs.teradata.com N9-1-1 byn001-1 hadoopvm1-1
39.0.8.2 N9-1-2.labs.teradata.com N9-1-2 byn001-2 hadoopvm1-2
39.0.8.3 N9-1-3.labs.teradata.com N9-1-3 byn001-3 hadoopvm1-3
39.0.8.4 N9-1-4.labs.teradata.com N9-1-4 byn001-4 hadoopvm1-4
39.0.8.5 N9-1-5.labs.teradata.com N9-1-5 byn001-5 hadoopvm1-5
{code}
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.
N9-1-1:/tmp # cat host_names_changes.json
{code}
{
"N91" : {"N9-1-3.labs.teradata.com" : "test-3.labs.teradata.com"}
}
{code}
6. Execute command on the ambari-server hosts (master1):
ambari-server update-host-names host_names_changes.json
{code}
Using python /usr/bin/python2
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.
{code}
Results: Host name update failed. Ambari-server log out put:
{code}
ERROR [main] HostUpdateHelper:531 - Exception occurred during host names
update, failed
org.apache.ambari.server.AmbariException: Hostname(s): N9-1-3.labs.teradata.com
was(were) not found.
at
org.apache.ambari.server.update.HostUpdateHelper.validateHostChanges(HostUpdateHelper.java:180)
at
org.apache.ambari.server.update.HostUpdateHelper.main(HostUpdateHelper.java:514)
16 Dec 2015 17:45:29,707 INFO [Stack Version Loading Thread]
LatestRepoCallable:74 - Loading latest URL info for stack HDP-2.2 from
http://s3.amazonaws.com/dev.hortonworks.com/HDP/hdp_urlinfo.json
{code}
> It failed to change the host name from Upper to Lower case for the cluster
> --------------------------------------------------------------------------
>
> Key: AMBARI-14410
> URL: https://issues.apache.org/jira/browse/AMBARI-14410
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Reporter: Irina Easterling
>
> It failed to change the host name from Upper to Lower case following
> instructions (AMBARI-13507) for the cluster.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)