Support Questions
Find answers, ask questions, and share your expertise

Can we use Ranger ui via Knox?

Can we use Ranger ui via Knox?

Explorer
 
1 REPLY 1
Highlighted

Re: Can we use Ranger ui via Knox?

Super Mentor

@GN_Exp

Can you please try this:

1. Create a file as following: "/etc/knox/conf/topologies/ui.xml". and add the following contents to it. Make sure to change the "rangeradmin.example.com:6080" with your Ranger Hostname

<topology>
    <gateway>
        <provider>
            <role>authentication</role>
            <name>Anonymous</name>
            <enabled>true</enabled>
        </provider>
        <provider>
            <role>identity-assertion</role>
            <name>Default</name>
            <enabled>false</enabled>
        </provider>
    </gateway>
    <service>
        <role>AMBARI</role>
        <url>http://ambariserver.example.com:8080</url>
    </service>
    <service>
        <role>AMBARIUI</role>
        <url>http://ambariserver.example.com:8080</url>
    </service>
    <service>
        <role>RANGER</role>
        <url>http://rangeradmin.example.com:6080/</url>
    </service>
    <service>
        <role>RANGERUI</role>
        <url>http://rangeradmin.example.com:6080/</url>
    </service>
</topology>    

.

2. Then restart "KNOX" service and then try accessing the following URL to access Ranger Admin UI. Please change the "knoxserver.example.com" with your own knox host URL.

https://knoxserver.example.com:8443/gateway/ui/ranger/index.html

.

Additionally if you want to To make Knox use Ranger authorization then please refer to the following article: https://community.hortonworks.com/articles/114601/how-to-configure-and-troubleshoot-a-knox-topology....