[
https://issues.apache.org/jira/browse/KNOX-2258?focusedWorklogId=396772&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-396772
]
ASF GitHub Bot logged work on KNOX-2258:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Mar/20 14:19
Start Date: 03/Mar/20 14:19
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_r387049123
##########
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">
+ <rewrite template="{$frontend[url]}/livy/ui"/>
Review comment:
Added required changes.
----------------------------------------------------------------
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: 396772)
Remaining Estimate: 46h 50m (was: 47h)
Time Spent: 1h 40m (was: 1.5h)
> 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: 1h 40m
> Remaining Estimate: 46h 50m
>
> 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)