Support Questions
Find answers, ask questions, and share your expertise

Hello! How to change YARN Quick Links URL in Ambari hdp - 2.5.3.0-37

Contributor
 
6 REPLIES 6

Super Mentor

@Dmitro Vasilenko

From Ambari 2.4 onwards you can use the "quicklinks.json" file like

Example:

/var/lib/ambari-server/resources/stacks/HDP/2.0.6/services/YARN/quicklinks/quicklinks.json
/var/lib/ambari-server/resources/stacks/HDP/2.3/services/YARN/quicklinks/quicklinks.json

.

From Ambari 2.4 the quicklinks are driven from stack quicklink.json for each service and as per Ambari-2.4.0 (trunk) bits, we can change component_name and the properties in quicklink.json to point through knox on a deployed cluster. This will require ambari-server restart after making changes.

https://community.hortonworks.com/content/supportkb/49488/how-to-change-yarn-quick-links-url-in-amba...

.

Contributor

Hi! Thanks you !

I want to specify for us problems with all references in Quick Links in Hadoop, a problem is in the dubbed names of localdomain.

For example : http://hostname.localdomain.ua.localdomain.ua:8088/ where it can be corrected ?

Super Mentor

@Dmitro Vasilenko

Sometime back i have written an article as [1], You can refer to the following article to customize the "public_host_name" and "host_name" (Mostly same) sothat the links will be using the same.

[1] https://community.hortonworks.com/content/kbentry/42872/why-ambari-host-might-have-different-public-...

- Also can you please check your ambari DB "hosts" table to find out whether the "public_host_name" is also having duplicate name "localdomain" string in it ? (Ex: hostname.localdomain.ua.localdomain.ua)

.

Contributor

Hello! We have duplicate name in ambari.hosts (postgresql table) select public_host_name from ambari.hosts; public_host_name ---------------------------------- ks-dmp08.localdomain.ua.localdomain.ua ks-dmp16.localdomain.ua.localdomain.ua ks-dmp20.localdomain.ua.localdomain.ua ks-dmp17.localdomain.ua.localdomain.ua ks-dmp09.localdomain.ua.localdomain.ua ks-dmp22.localdomain.ua.localdomain.ua ks-dmp01.localdomain.ua.localdomain.ua ks-dmp02.localdomain.ua.localdomain.ua ks-dmp05.localdomain.ua.localdomain.ua ks-dmp04.localdomain.ua.localdomain.ua ks-dmp14.localdomain.ua.localdomain.ua ks-dmp13.localdomain.ua.localdomain.ua ks-dmp21.localdomain.ua.localdomain.ua ks-dmp12.localdomain.ua.localdomain.ua ks-dmp07.localdomain.ua.localdomain.ua ks-dmp10.localdomain.ua.localdomain.ua ks-dmp15.localdomain.ua.localdomain.ua ks-dmp06.localdomain.ua.localdomain.ua ks-dmp18.localdomain.ua.localdomain.ua ks-dmp11.localdomain.ua.localdomain.ua ks-dmp03.localdomain.ua.localdomain.ua ks-dmp19.localdomain.ua.localdomain.ua --------------------- Do we can update a value in a table ambari.hosts (postgresql table) ?

Contributor

Hi! A problem is removed after change DNS and restart ambary agents.

Super Mentor

@Dmitro Vasilenko

Great!!!

Few additional information. When we start the ambari-agent then it fetches the current hostname (fqdn) of the host and then sends a registration request to ambari-server. In this process agent sends the public_host_name and host_name for registration. These data is then stored in the ambari servers "hosts" table.

So if the hostnames are changed in any agent machine then ambari-agent need to be restarted.