Hi Sumit, So I had a further look and it seems I'm hitting this:
http://bugs.python.org/issue5004 So the fix is to ensure that /etc/hosts is also configured properly, even if using DNS. Thanks again, Christian On Sun, Aug 4, 2013 at 5:44 PM, Christian Smith <[email protected]>wrote: > Hi Sumit, > > I'm currently using a hostname script as that was the only way I could get > things aligned across the systems. I'll google around and see if I can see > why I'm getting different results from socket.getfqdn()... > > Thanks for your help, > Christian > > > On Sun, Aug 4, 2013 at 4:53 PM, Sumit Mohanty <[email protected]>wrote: > >> Hi Christian, >> >> The agents use socket.getfqdn() to get the value to use. There are some >> scenarios where socket.getfqdn() can be different than hostname –f. You can >> perform a web search and find examples. See if modifying /etc/hosts will >> help. >> >> Another option would be - >> You can write a custom script that will modify the name used by the >> agents to register. >> The name of the property (at /etc/ambari-agent/conf/ambari-agent.ini) >> is hostname_script. >> >> E.g. >> [agent] >> prefix=/var/lib/ambari-agent/data >> ... >> hostname_script=/myScripts/customizeHostName.sh >> >> Essentially, the script can use the value returned by hostname >> -f assuming all the agents have similar issue. >> >> Once you modify the .ini file you can restart the agent for it to >> register with the modified name. >> >> Thanks >> Sumit >> >> From: Christian Smith <[email protected]> >> Date: Saturday, August 3, 2013 4:53 PM >> To: Sumit Mohanty <[email protected]> >> Cc: "[email protected]" <[email protected]> >> Subject: Re: Cluster install wizard fails with manually configured agents >> >> Hi Sumit, >> >> It seems the hosts were registered with just there hostname, not FQDNs >> even though hostname/hostname -f return the correct values on the agent >> nodes. Do you know why this might be? >> >> Thanks, >> Christian >> >> >> On Sat, Aug 3, 2013 at 4:11 PM, Sumit Mohanty >> <[email protected]>wrote: >> >>> What are the hosts you see if you go to http://server:8080/api/v1/hosts? >>> Ensure that host names you are using are the same the hosts used to >>> register. >>> >>> Sent from my Windows Phone >>> ------------------------------ >>> From: Christian Smith <[email protected]> >>> Sent: 8/2/2013 7:21 PM >>> To: [email protected] >>> Subject: Cluster install wizard fails with manually configured agents >>> >>> Hi, >>> >>> I've got the server installed and configured and have also setup several >>> agents which have successfully connected and registered with the >>> ambari-server according to the server logs. >>> >>> I'm now attempting to run through the UI wizard, I'm entering the >>> hostnames, specifying manual agent install, and clicking 'Register and >>> Confirm'. >>> >>> The next step, Confirming Hosts, then shows all hosts as 'Registering'. >>> After a while they all transition to Failed. I've tried several times, >>> restarted services etc... >>> >>> Am I missing a step? >>> >>> Thanks, >>> Christian >>> >> >> >
