[ 
https://issues.apache.org/jira/browse/YARN-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909082#comment-13909082
 ] 

Jian He commented on YARN-1740:
-------------------------------

The issue is that MR is reseting the HTTP_POLICY config to be HTTP_ONLY for the 
security purpose, and so AMIpFilter is always using HTTP_ONLY picked up from 
the config for constructing the redirection  URL to the proxy.

Fixed it by passing the HTTP_ONLY as a parameter to the web app. 

> Redirection from AM-URL is broken with HTTPS_ONLY policy
> --------------------------------------------------------
>
>                 Key: YARN-1740
>                 URL: https://issues.apache.org/jira/browse/YARN-1740
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Yesha Vora
>            Assignee: Jian He
>         Attachments: YARN-1740.1.patch
>
>
> Steps to reproduce:
> 1) Run a sleep job
> 2) Run: yarn application -list command to find AM URL.
> root@host1:~# yarn application -list
> Total number of applications (application-types: [] and states: SUBMITTED, 
> ACCEPTED, RUNNING):1
> Application-Id Application-Name Application-Type User Queue State Final-State 
> Progress Tracking-URL
> application_1383251398986_0003 Sleep job MAPREDUCE hdfs default RUNNING 
> UNDEFINED 5% http://host1:40653
> 3) Try to access "http://host1:40653/ws/v1/mapreduce/info"; url.
> This URL redirects to 
> http://RM_host:RM_https_port/proxy/application_1383251398986_0003/ws/v1/mapreduce/info
> Here, Http protocol is used with HTTPS port for RM.
> The expected Url is 
> https://RM_host:RM_https_port/proxy/application_1383251398986_0003/ws/v1/mapreduce/info



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to