Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
Description
Ambari agent determines its FQDN that will use for registering with Ambari Server as follows:
- invokes the script specified by hostname_script in ambari-agent.ini and uses the output of this script as host name to register with.
- if the script mentioned above returned with a non-zero error code (or threw an exception) than falls back to socket.getfqdn python api call.
- if hostname_script is not set in ambari-agent.ini than it uses socket.getfqdn python api call.
Currently the agent doesn't log anything about how it obtained its FQDN which makes troubleshooting difficult in case it registers with Ambari Server using unexpected/wrong FQDN.
Attachments
Attachments
Issue Links
- links to