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

Sunil G commented on KNOX-1207:
-------------------------------

thanks [~yg54123]

I tested this in my cluster.

Few issues in accessing NM still.
{noformat}
18/03/22 15:28:10 
||18139aca-2d33-4e48-a296-40b6a2573297|audit|10.42.80.94|YARNUI|anonymous|||authorization|uri|/gateway/sandbox/yarn/nodemanager/node?host=nm.abc.site&port=8042|success|

18/03/22 15:28:10 
||18139aca-2d33-4e48-a296-40b6a2573297|audit|10.42.80.94|YARNUI|anonymous|||dispatch|uri|rm.abc.site:8088/cluster/nodemanager/node|unavailable|Request
 method: GET

18/03/22 15:28:10 
||18139aca-2d33-4e48-a296-40b6a2573297|audit|10.42.80.94|YARNUI|anonymous|||dispatch|uri|rm.abc.site:8088/cluster/nodemanager/node|success|Response
 status: 404

18/03/22 15:28:10 
||18139aca-2d33-4e48-a296-40b6a2573297|audit|10.42.80.94|YARNUI|anonymous|||access|uri|/gateway/sandbox/yarn/nodemanager/node?host=nm.abc.site&port=8042|success|Response
 status: 404{noformat}
Ideally when we get 
*gateway/sandbox/yarn/nodemanager/node?host=nm.abc.site&port=8042* it should be 
translated to  *nm.abc.site:8042/node*. But its not happening.
{code:java}
<rule dir="IN" name="YARNUI/yarn/inbound/nodemanager/node2" 
pattern="*://*:*/**/yarn/nodemanager/node?{scheme}?{host}?{port}">
<rewrite template="{scheme}://{host}:{port}/node"/>
</rule>{code}
This seems not working.

 

Some more comments in patch

1. Missing *"* in last part of <rule dir="OUT" 
name="YARNUI/yarn/outbound/node/containerlogs" 
pattern="//*:*/node/containerlogs/\{**}>

2. Any change in service.xml needed?

 

cc/ [[email protected]]

> Several url rewrite bugs in yarn ui and job history ui
> ------------------------------------------------------
>
>                 Key: KNOX-1207
>                 URL: https://issues.apache.org/jira/browse/KNOX-1207
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: Future, 0.14.0
>            Reporter: Guang Yang
>            Priority: Major
>         Attachments: KNOX-1207.patch
>
>
> There are several url rewrite bugs in yarn ui and map/reduce job history ui.



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

Reply via email to