You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jayush Luniya (JIRA)" <ji...@apache.org> on 2015/05/01 03:30:06 UTC

[jira] [Commented] (AMBARI-10879) If hostname used by agents is upper-case or mixed-case then upgrading to Ambari-2.0 may create issues

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

Jayush Luniya commented on AMBARI-10879:
----------------------------------------

Background:
Automatic bootstrap in 1.7.0 was broken.
In 1.7.0, we changed hostname entered by the user in ambari web to be case insensitive. See https://issues.apache.org/jira/browse/AMBARI-6521
However in 1.7.0, there was no corresponding change in the backend to make hostnames case insensitive.
So automatic bootstrap in 1.7.0 fails with following error logs:
ERROR 2015-04-27 21:00:37,793 main.py:137 - Ambari agent machine hostname (C6501.ambari.apache.org) does not match expected ambari server hostname (c6501.ambari.apache.org). Aborting registration. Please check hostname, hostname -f and /etc/hosts file to confirm your hostname is setup correctly
In 2.0.0, the backend was fixed as part of Windows integration.
However we didn't handle the upgrade scenario on Linux side. It looks like in all our test environments we are using non-capitalized host names.
Solution
Before upgrading update the database tables to lowercase hostnames in the database.

> If hostname used by agents is upper-case or mixed-case then upgrading to Ambari-2.0 may create issues
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-10879
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10879
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jayush Luniya
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> As part of the Windows support, in 2.0. agent code converts hostnames to lowercase. If some hosts are registered with mixed-case hostnames then after upgrade the agents will not be recognized resulting in Hearbeat lost.



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