- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How does ambari get the domain name for the quick links?
- Labels:
-
Apache Ambari
Created ‎07-06-2016 04:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am scripting an ambari install to openstack and it works great, however one annoying aspect is the quicklinks are retrieving the cloud-init domain name despite the fact that it's been changed everywhere - kernel, etc/hostname, hostnamectl, etc. I.e. the links use the domain "novalocal" i.e. storm-server.novalocal:8772 instead of storm-server.mydomain.com:8772. Ambari is retrieving the correct domain name elsewhere, just the links are wrong in the ui. Any idea how it's getting the domainname so that I can ensure that it's changed there before I go installing ambari?
Created ‎07-07-2016 03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using OpenStack (cloud based environment) If yes then you will need to fix the host name as mentioned in the article:
This article explains how ambari distinguishes the "host_name" and "public_host_name" at every restart of the ambari-agents.
Created ‎07-06-2016 09:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Mark Davis
You may have done all the following, but let's make sure and let me know your findings.
All hosts in your system must be configured for DNS and Reverse DNS. These quick links, "oddly", need a reverse DNS. For example, test if you can nslookup by IP and get the proper FQDN and nslookup by FQDN and get the proper IP address. If this does not work, your quicklinks will not work. You would have to manually enter the IP address on the quick link URL to bring the expected function.
If you are unable to configure DNS and Reverse DNS, you must edit the hosts file on every host in your cluster to contain the address of each of your hosts and to set the Fully Qualified Domain Name hostname of each of those hosts. The following instructions cover basic hostname network setup for generic Linux hosts: https://ambari.apache.org/1.2.4/installing-hadoop-using-ambari/content/ambari-chap1-5-4.html
Created ‎07-07-2016 08:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks Constantin, I have working DNS both ways via designate service.
Created ‎07-07-2016 03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using OpenStack (cloud based environment) If yes then you will need to fix the host name as mentioned in the article:
This article explains how ambari distinguishes the "host_name" and "public_host_name" at every restart of the ambari-agents.
Created ‎07-07-2016 08:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Super answer and article, thanks Joy!
Created ‎07-07-2016 08:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Joy and Constantin thanks so much for your quick responses. You were exactly right Joy - I am deploying to openstack, and the public_hostname as reported by ambari-agent was the item in my case. I have working DNS with designate so the hosts file entries should not have been necessary (I was trying to avoid this to more easily scale the cluster). Thanks a lot again, delighted to get this sorted!
