Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1999

Atlas UI proxied via Knox: hdfs LOCATION field has the location set to https:// instead of hdfs://

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • Server
    • None

    Description

      The issue is that the following WEBHDFS rule

          <rule dir="OUT" name="WEBHDFS/webhdfs/outbound" pattern="hdfs://*:*/{path=**}?{**}">
              <rewrite template="{$frontend[url]}/webhdfs/v1/{path=**}?{**}"/>
          </rule>
      

      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://, at-least for other UIs so we need to limit the scope of this rule to local scope from global scope.

          <rule dir="OUT" scope="WEBHDFS" name="WEBHDFS/webhdfs/outbound" pattern="hdfs://*:*/{path=**}?{**}">
              <rewrite template="{$frontend[url]}/webhdfs/v1/{path=**}?{**}"/>
          </rule>
      

      Attachments

        Issue Links

          Activity

            People

              smore Sandeep More
              smore Sandeep More
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m