Community Articles

Find and share helpful community-sourced technical articles.
Labels (2)
avatar

Here is the steps to access HDFS UI through Knox. This is tried and tested with Ambari 2.4 and HDP2.5

1. Make sure Knox is configured properly and it works fine.

2. ssh to Knox gateway host and go to /var/lib/knox/data-2.5.3.0-37/services

3. download the configurations from https://github.com/apache/knox/tree/v0.11.0/gateway-service-definitions/src/main/resources/services/... URL.

4. make sure your folder structure should look alike /var/lib/knox/data-2.5.3.0-37/services/hdfsui/2.7.0 and should have rewrite.xml and service.xml files

5. change the owner/Group permissions to Knox for /var/lib/knox/data-2.5.3.0-37/services/hdfsui/ and subdirectory

6. Go to Knox configurations Modify "Advanced topology" with below service tag

  <service>
                <role>HDFSUI</role>
                <url>http://NNHOST:50070</url>
  </service>

7.Restart Knox service.

8. You should be able to access Name node UI from the below URL

https://Knxo-host:8443/gateway/default/hdfs/

Note: replace default with your correct 'identity-assertion'

7,275 Views
Comments
avatar
New Contributor

Even with disabled identity-assertion and latest rewrite.xml and service.xml from KNOX 0.11.0 browser (Firefox) still complains about

Error: Bootstrap requires jQuery (See WebDeveloper console in FF). Direct access with and same Browser works fine.

With KNOX the page is reachable but nothing is shown for the tabs like Overview, Datanodes etc.

To disable identity-assertion, the following was changed in the test topology:

<provider>
                    <role>identity-assertion</role> 
                    <name>Default</name> 
                    <enabled>false</enabled>
</provider>

? With this disabled identity-assertion other services like HIVE2 won't properly work anymore?!

May also related to

https://issues.apache.org/jira/browse/KNOX-626 (still not resolved yet)

Env: HDP 2.5 with Kerberos

avatar

Does this work with https?