[
https://issues.apache.org/jira/browse/KNOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16456641#comment-16456641
]
Sandeep More commented on KNOX-1270:
------------------------------------
Hello [~yg54123] the does not seem to work for me
I get a 404 (same as before) and the following error in the logs
{code:java}
2018-04-27 11:44:31,987 ERROR knox.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Failed to rewrite URL:
http://nodeui:8088/cluster/app/application_1524811422737_0003, direction: OUT
via rule: YARNUI/yarn/outbound/node2, status: FAILURE
2018-04-27 11:44:32,067 ERROR knox.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Failed to rewrite URL:
https://localhost:8443/gateway/sandbox/yarn/cluster/appattempt/appattempt_1524811422737_0003_000001,
direction: OUT via rule: YARNUI/yarn/outbound/node2, status: FAILURE
2018-04-27 11:44:32,067 ERROR knox.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Failed to rewrite URL:
https://localhost:8443/gateway/nodemanagerui/node/containerlogs/container_1524811422737_0003_01_000001/guest?scheme=http&host=nodeui&port=8042,
direction: OUT via rule: YARNUI/yarn/outbound/node2, status: FAILURE
2018-04-27 11:44:32,067 ERROR knox.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Failed to rewrite URL:
https://localhost:8443/gateway/sandbox/yarn/cluster/appattempt/appattempt_1524811422737_0003_000002,
direction: OUT via rule: YARNUI/yarn/outbound/node2, status: FAILURE
2018-04-27 11:44:32,068 ERROR knox.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Failed to rewrite URL:
https://localhost:8443/gateway/nodemanagerui/node/containerlogs/container_1524811422737_0003_02_000001/guest?scheme=http&host=nodeui&port=8042,
direction: OUT via rule: YARNUI/yarn/outbound/node2, status: FAILURE
2018-04-27 11:44:59,837 ERROR knox.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Failed to rewrite URL:
http://nodeui:8088/cluster/app/application_1524811422737_0003, direction: OUT
via rule: YARNUI/yarn/outbound/node2, status: FAILURE
{code}
Looks like the new rules you added do not get called.
Also, take a look at the patch on KNOX-1023, it seems to be a duplicate of
this.
> Yarn jobs url rewrites failure
> ------------------------------
>
> Key: KNOX-1270
> URL: https://issues.apache.org/jira/browse/KNOX-1270
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.14.0, 1.0.0
> Reporter: Guang Yang
> Assignee: Guang Yang
> Priority: Major
> Fix For: 0.14.1, 1.1.0
>
> Attachments: KNOX-1270.patch
>
>
> If you go to see the Yarn job logs through Yarn UI, the log urls are actually
> broken.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)