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 subversion and git services (Jira)" <ji...@apache.org> on 2019/08/29 18:31:00 UTC

[jira] [Commented] (KNOX-1999) Atlas UI proxied via Knox: hdfs LOCATION field has the location set to https:// instead of hdfs://

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

ASF subversion and git services commented on KNOX-1999:
-------------------------------------------------------

Commit fd7df3456565dd1a2dc421c84f81762f0e80e1b9 in knox's branch refs/heads/master from Sandeep More
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=fd7df34 ]

KNOX-1999 - Make WEBHDFS rule that rewrites hdfs:// local (#139)



> Atlas UI proxied via Knox: hdfs LOCATION field has the location set to https:// instead of hdfs://
> --------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-1999
>                 URL: https://issues.apache.org/jira/browse/KNOX-1999
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>            Priority: Major
>             Fix For: 1.4.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The issue is that the following WEBHDFS rule
> {code:xml}
>     <rule dir="OUT" name="WEBHDFS/webhdfs/outbound" pattern="hdfs://*:*/{path=**}?{**}">
>         <rewrite template="{$frontend[url]}/webhdfs/v1/{path=**}?{**}"/>
>     </rule>
> {code}
> All WEBHDFS rules are global for backwards compatibility, as a result this rule is rewriting links from AtlasUI.
> There is no reason to rewrite hdfs:// to [https://,|https://,/] at-least for other UIs so we need to limit the scope of this rule to local scope from global scope.
> {code:xml}
>     <rule dir="OUT" scope="WEBHDFS" name="WEBHDFS/webhdfs/outbound" pattern="hdfs://*:*/{path=**}?{**}">
>         <rewrite template="{$frontend[url]}/webhdfs/v1/{path=**}?{**}"/>
>     </rule>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)