Use the following instructions to use custom hostnames in your cluster:
- On the Install Options screen, select Perform Manual Registration for Ambari Agents. 
- Install the Agents manually as described in Installing Ambari Agents Manually. 
- For every host, create a script (for example named - /tmp/hostname.sh) to echo the custom name you wish to use for that host. For example:- #!/bin/sh echo <ambari_hostname> 
- With a text editor, open - /etc/ambari-agent/conf/ambari-agent.inion every host and add the following information:- Table 6.1. ambari-agent.ini - Section - Value - [server] - Change the hostname to the host for the Ambari Server. This is the server that the Agent registers to. - [agent] - Add this line to the agent section: - hostname_script=/tmp/hostname.sh(or whatever you have named your script)
- Add the hostnames to - /etc/hostson all nodes.


