I have a cluster running, which was set up by Hortonworks. Ambari-server is installed and running. I'm currently trying to figure out why I don't get the correct response from server.fqdn.service.url=http://169.254.169.254/latest/meta-data/public-hostname, which is found in /etc/ambari-server/conf/ambari.properties. It's currently returning a default "site blocked"-response from the third party vendor which operates our cluster when i write
GET http://169.254.169.254/latest/meta-data/public-hostname, or any variation such as (http://169.254.169.254/latest/)
I'm working with them, but we're unable to find out where this service is supposed to be running. Is 169.254.269.254 supposed to be running locally on each node, or is it something hosted elsewhere?
Hello @Håkon Trømborg,
The property "server.fqdn.service.url" points to a service, which can return FQDN of host. This is used in Ambari server/agent for getting external host names (e.g. on EC2 environment).
Ideally this should be external service running on a host which is accessible by each nodes of your cluster. This particular host "169.254.169.254" looks like a public service which is AWS EC2 Instance Metadata service. It hosts many such useful tools like 'public-hostname'. Check this out:
# curl http://169.254.169.254/latest/meta-data/ ami-id ami-launch-index ami-manifest-path block-device-mapping/ hostname instance-action instance-id instance-type local-hostname local-ipv4 placement/ public-hostname public-ipv4 public-keys/ reservation-id security-groups
You can read more about this service here : http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
In short, you might want allow access to this site from all your cluster hosts.
Hope this helps !
Would you know why this IP address is by default present in ambari.properties file. We have multiple clusters at our site and all of them have the same ip. Also, I am unable to reach this ip by any means