Community Articles

Find and share helpful community-sourced technical articles.
Celebrating as our community reaches 100,000 members! Thank you!
Labels (2)
Rising Star

Short Description:

Configure Knox to access Atlas UI


Here is the steps to access Atlas UI through Knox.

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.6.****/services

3. mkdir –p atlas/0.8.0/

mkdir –p atlas-api/0.8.0/

4. download the configurations from URL to /var/lib/knox/data-2.6.***/services/ atlas-api/0.8.0/

5. download the configurations from URL to /var/lib/knox/data-2.6.***/services/ atlas/0.8.0/

5. change the owner/Group permissions to Knox for /var/lib/knox/data-2.6.**/services/atlas*/ and subdirectory

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

  1. <service>
  2. <role>ATLAS</role>
  3. <url></url>
  4. </service>
  5. <service>

7. Restart Knox service.

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

Please Note: At this point of time, it's a work-around, Hortonworks doesn't support this yet.

0 Kudos
New Contributor

In "my" non sandbox envionment with HDP 2.6.4 it is not working properly!

Even the official Knox 1.0 (lasted Version) documentation says

"The initial functionality is very limited and serves more as a starting point/placeholder"

All the requests via Knox are ignored and no permissions are granted....

x 07:50:21,847 DEBUG - [pool-2-thread-21:] ~ ==> AuthorizationFilter.doFilter (AtlasAuthorizationFilter:91) x 07:50:21,847 DEBUG - [pool-2-thread-21:] ~ Ignoring request /v2/types/typedefs (AtlasAuthorizationFilter:174) x 07:50:21,849 DEBUG - [pool-2-thread-21:] ~ Cleaning stale transactions (StaleTransactionCleanupFilter:53)

To me it looks like the Knox rewrite definition or is broken together with Knox & Atlas with HDP 2.6.4



Please try adding

<service> <role>ATLAS-API</role> <url>http://${atlas_metadata_server_host}:${atlas_metadata_server_port}/</url> </service>

(e.g. <service> <role>ATLAS-API</role> <url></url> </service> )

to your "Advanced topology".

I met "Something went wrong" error on Atlas WebUI before adding it.