[
https://issues.apache.org/jira/browse/KNOX-2258?focusedWorklogId=396807&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-396807
]
ASF GitHub Bot logged work on KNOX-2258:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Mar/20 15:08
Start Date: 03/Mar/20 15:08
Worklog Time Spent: 10m
Work Description: abhi2196 commented on pull request #276: KNOX-2258: Add
rewrite rule to fix livy redirect issue
URL: https://github.com/apache/knox/pull/276#discussion_r387083657
##########
File path:
gateway-service-definitions/src/main/resources/services/livy/0.4.0/rewrite.xml
##########
@@ -45,4 +45,8 @@
<rewrite
template="{$frontend[url]}/yarn/nodemanager/node/containerlogs/{**}?{scheme}?host={$hostmap(host)}?{port}"/>
</rule>
+ <rule dir="OUT" name="LIVYSERVER/livy/outbound/headers/ui"
pattern="{scheme}://{host}:{port}/ui/">
Review comment:
Yes I verified with these changes that looking for `/ui/` as the pattern is
correctly redirecting to livy ui page.
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 396807)
Remaining Estimate: 46.5h (was: 46h 40m)
Time Spent: 2h (was: 1h 50m)
> Add new rewrite rule in Livy service for handling redirect requests to /ui
> --------------------------------------------------------------------------
>
> Key: KNOX-2258
> URL: https://issues.apache.org/jira/browse/KNOX-2258
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 1.3.0
> Reporter: Abhishek Shukla
> Assignee: Abhishek Shukla
> Priority: Major
> Labels: livy
> Fix For: 1.4.0
>
> Time Spent: 2h
> Remaining Estimate: 46.5h
>
> Livy Knox Trusted Proxy Url:
> {noformat}
> https://<KNOX_HOST:KNOX_PORT>/gateway/default/livy
> {noformat}
> Redirects to
> {noformat}
> https://<LIVY_HOST>:<LIVY_PORT>/ui
> {noformat}
> And Exposes Livy Server Port URL, We should add new rewrite rule in the Livy
> service to handle this redirect.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)