Community Articles

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

Here is the steps to access Ambari 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/ambariui/2.2.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/ambariui/ and subdirectory

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

         <service>
                <role>AMBARIUI</role>
                <url>http://AMBARIHOST:8080</url>
            </service>

7. Restart Knox service.

8. You should be able to access Ambari-server UI from the below URL

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

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

8,955 Views
Comments
avatar
Expert Contributor

Maybe it's clearer to call it cluster-name instead of "identity-assertion"

Apache Knox

https://{gateway-host}:{gateway-port}/{gateway-path}/{cluster-name}/webhdfs

avatar
Cloudera Employee

Adding below configs at advanced-topology(ambari ui --> knox --> configs ) will work.

           <service>
                <role>AMBARIUI</role> 
<url>http://bakumar-bkumar-dlm.openstacklocal:8080</url>
</service>
<service> <role>AMBARI</role>
<url>http://bakumar-bkumar-dlm.openstacklocal:8080/</url> </service>

And then restart the knox service from UI.

Then access the Knox gateway to access ambari ui through gateway.

Ex:

https://hdp21.openstacklocal:8443/gateway/default/ambari

avatar
New Contributor

Thank you for your help