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/11/22 06:15:00 UTC

[jira] [Work logged] (KNOX-2135) Yarn RM Log Links broken when routed through Knox

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

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

                Author: ASF GitHub Bot
            Created on: 22/Nov/19 06:14
            Start Date: 22/Nov/19 06:14
    Worklog Time Spent: 10m 
      Work Description: deepashreeraghu commented on pull request #204: KNOX-2135-YARN-RM-Logs sub-links fix
URL: https://github.com/apache/knox/pull/204
 
 
   ## What changes were proposed in this pull request?
   The logs sublinks under the YARN's RM log links are broken. This PR includes changes in the rewrite file and service file to update the body of the logs link so that the sublinks are rewritten appropriately.
   
   ## How was this patch tested?
   This patch was tested by creating a hadoop cluster and rewriting links using the knox gateway. 
   The logs sublinks that were failing before patch are now working. 
   Attaching a screenshot below.
   
    
   <img width="1034" alt="image" src="https://user-images.githubusercontent.com/8832194/69402297-6bae0200-0d1d-11ea-97da-5718e10b8504.png">
   
   
   In the screenshot, the link being hovered on shows the properly rewritten link in the bottom.
 
----------------------------------------------------------------
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: 347954)
    Remaining Estimate: 0h
            Time Spent: 10m

> Yarn RM Log Links broken when routed through Knox
> -------------------------------------------------
>
>                 Key: KNOX-2135
>                 URL: https://issues.apache.org/jira/browse/KNOX-2135
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: How to repro
> With Ambari UI ->  Yarn -> Quick Links -> Resource Manager Logs -> This lists a list of links to job summary logs, the yarn resource manager logs and the rm-audit logs.
> Click on any of the links to see the error.
>            Reporter: Deepashree Gandhi
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {color:#1d1c1d}For a hadoop cluster that is enabled with knox gateway, the yarn logs are located at the following location:{color}
> [https://myhostname:8443/logs/hadoop-yarn-resourcemanager-myhostname.log]{color:#1d1c1d}. Similar locations for the jobsummary and audit logs. However due to knox rewrite rule bug, these links are not accessible. They fail with following error:{color}
> HTTP ERROR 404
> Problem accessing /logs/hadoop-yarn-resourcemanager-myhostname.log. Reason:Not Found
> Powered by Jetty:// 9.4.12.v20180830
> HTTP ERROR 404
> Problem accessing /logs/hadoop-mapreduce.jobsummary.log. Reason: Not Found
> Powered by Jetty:// 9.4.12.v20180830
> HTTP ERROR 404
> Problem accessing /logs/rm-audit.log. Reason:
> Powered by Jetty:// 9.4.12.v20180830
> **{color:#1d1c1d}
> {color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)