You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/03/20 17:38:00 UTC

[jira] [Work logged] (KNOX-1584) YARN v2 UI - Application - History link broken

     [ https://issues.apache.org/jira/browse/KNOX-1584?focusedWorklogId=216352&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-216352 ]

ASF GitHub Bot logged work on KNOX-1584:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Mar/19 17:37
            Start Date: 20/Mar/19 17:37
    Worklog Time Spent: 10m 
      Work Description: risdenk commented on pull request #78: KNOX-1584 - YARN v2 UI - Application - History link fix
URL: https://github.com/apache/knox/pull/78#discussion_r267463216
 
 

 ##########
 File path: gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
 ##########
 @@ -170,5 +170,13 @@
       <apply path="Location" rule="YARNUIV2/yarnuiv2/outbound/headers/index/location"/>
     </content>
   </filter>
+   
+  <rule dir="IN" name="YARNUIV2/yarnuiv2/inbound/proxy" pattern="*://*:*/**/yarnuiv2/proxy/{**}?{**}">
+      <rewrite template="{$serviceUrl[YARNUIV2]}/proxy/{**}?{**}"/>
+   </rule>
+
+   <rule dir="OUT" name="YARNUIV2/yarnuiv2/outbound/proxy" pattern="*://*:*/proxy/{**}">
+      <rewrite template="{gateway.scheme}://{gateway.host}:{gateway.port}/gateway/default/sparkhistory/history/{**}?{**}"/>
 
 Review comment:
   This isn't correct for a few reasons.
   * This assumes the default topology due to `gateway/default`
   * This will cause all proxying to go to Spark history server and will break mapreduce history server links.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 216352)
            Time Spent: 10m
    Remaining Estimate: 0h

> YARN v2 UI - Application - History link broken
> ----------------------------------------------
>
>                 Key: KNOX-1584
>                 URL: https://issues.apache.org/jira/browse/KNOX-1584
>             Project: Apache Knox
>          Issue Type: Sub-task
>            Reporter: Kevin Risden
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: Screen Shot 2018-11-08 at 4.45.21 PM.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> [http://localhost:8443/gateway/test/yarnuiv2/redirect#/yarn-app/application_1541711200634_0002/attempts]
> The "History" link
>  * Redirects to [http://ambari:8088/proxy/application_1541711200634_0002/]
>  * Which fails to point to the correct location http://localhost:8443/gateway/test/yarnuiv2/proxy/[application_1541711200634_0002/|http://ambari:8088/proxy/application_1541711200634_0002/]
>  * This then redirects incorrectly to: [http://ambari:19888/jobhistory/job/job_1541711200634_0002]
>  * Correct link should be http://localhost:8443/gateway/test/jobhistory/job/job_1541711200634_0002



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)