ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuan Liu (JIRA)" <>
Subject [jira] [Commented] (AMBARI-7767) Add an agent config to discover server hostname via a script
Date Thu, 16 Oct 2014 19:05:33 GMT


Chuan Liu commented on AMBARI-7767:

[~u39kun], here is a short description of the problem we want to address.

We are mainly dealing with Ambari manual install mode. In this mode, Ambari agent is pre-installed
and configured on all nodes. After the cluster is up, ambari agent will connect to and register
with the server of the configured hostname in ambari-agent.ini. When creating cluster, we
only need to provide all agent node FQDNs to Ambari server. The existing Ambari agent setting
assumes a static server hostname is known prior to create the cluster. However, this is not
always the case. In some cloud environment, e.g. Windows Azure, the node FQDN can only be
revealed after the VM is up. In such environments, we will need to rewrite the Ambari agent
configuration file after deployment to fill in the server FQDN. This is not a very clean solution
because Ambari agent will usually auto start after the VM boots up. We need to restart agent
after rewriting the configuration. By providing the above mentioned feature, we can have a
configurable script that run by Ambari agent itself to auto discover the server FQDN. I also
think the feature is flexible enough deal with most scenarios where the server FQDN is not

> Add an agent config to discover server hostname via a script
> ------------------------------------------------------------
>                 Key: AMBARI-7767
>                 URL:
>             Project: Ambari
>          Issue Type: New Feature
>          Components: ambari-agent
>    Affects Versions: 1.7.0
>            Reporter: Chuan Liu
>            Assignee: Chuan Liu
>             Fix For: 2.0.0
>         Attachments: AMBARI-7767.1.patch, AMBARI-7767.patch
> Ambari agent relies on the following configuration in ambari-agent.ini to find the Ambari
server hostname. 
> {noformat}
> [server]
> hostname=localhost
> {noformat}
> We want to add a feature that let the hostname be discovered via a configurable script
similar to how the agent can use 'hostname_script' to find its own hostname. 

This message was sent by Atlassian JIRA

View raw message