[ 
https://issues.apache.org/jira/browse/AMBARI-14260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Srimanth Gunturi updated AMBARI-14260:
--------------------------------------
    Attachment: AMBARI-14260.patch

AMBARI-13537 introduced a change where the value of 
{{mapreduce.jobhistory.webapp.address}} is directly used in the quicklink URLs. 
This is problematic when there are custom public-hostnames and the quicklinks 
make use of it.

The fix is to map the internal hostname of 
{{mapreduce.jobhistory.webapp.address}} into the public-hostname and then 
construct the quicklink.

The change has been tested on live cluster where it was failing before and now 
works.

Tests pass:
{noformat}

  10255 tests complete (9 seconds)
  106 tests pending

[INFO]
[INFO] --- apache-rat-plugin:0.11:check (default) @ ambari-web ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: .idea/**
[INFO] Exclude: package.json
[INFO] Exclude: public/**
[INFO] Exclude: public-static/**
[INFO] Exclude: app/assets/**
[INFO] Exclude: vendor/**
[INFO] Exclude: node_modules/**
[INFO] Exclude: node/**
[INFO] Exclude: npm-debug.log
[INFO] 1242 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 
approved: 1242 licence.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.595s
[INFO] Finished at: Mon Dec 07 18:57:18 PST 2015
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
{noformat}

> Custom public hostnames don't work for MapReduce2 quick links
> -------------------------------------------------------------
>
>                 Key: AMBARI-14260
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14260
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.2.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 2.2.0
>
>         Attachments: AMBARI-14260.patch
>
>
> When cluster is setup with custom public-hostnames, MapReduce service's 
> quicklinks use internal hostnames. Due to this quick links dont work



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to