You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@atlas.apache.org by Masato Narushima <ma...@riken.jp> on 2025/04/14 09:31:42 UTC

How does Apache Ranger and Apache Atlas work together?

Hello,
I want to use Apache Ranger to manage Apache Atlas users.
If it is not correct to post here, please point it out.

When I try to log in to Apache Atlas, I get the following message
 Error while authenticating
Login process XXX returns 401.
No other information on logs is available.

The following settings are used to confirm this.

Specified in the Apache Atlas configuration file (atlas-application.properties)
 atlas.authorizer.impl=org.apache.ranger.authorization.atlas.authorizer.RangerAtlasAuthorizer
 atlas.authentication.method.kerberos=false
 atlas.authentication.method.file=false

Specify ranger-2.6.0-atlas-plugin
 install.properties
Execute enable-atlas-plugin.sh

The “test_ranger_atlas” service is configured for ranger and a user is added.

Apache Atlas Authentication not configured?
Please let us know if any necessary settings are missing or incorrect.

Thanks & Regards,
Narushima



Re: How does Apache Ranger and Apache Atlas work together?

Posted by Ryan Jendoubi <rj...@cloudera.com>.
Hello Narushima-san,

This is not something I have implemented myself, so forgive me if my
comments are in any way misguided.

Per my understanding though, Ranger is all about *authorization*, not
authentication.

Ranger and Atlas should use the same *authentication* source - e.g. LDAP.
That would be involved in getting users logged in in the first place.

Then, *after* a user has confirmed their identity and logged in, *then* Ranger
gets involved by *authorizing* what that user is allowed to see and do
inside Atlas.

In the Cloudera stack, we often use Apache Knox <https://knox.apache.org/>
as the component to mediate between various authentication sources on the
one hand (Active Directory, Okta, FreeIPA etc.) and the various big data
tools on the other (Ranger, Atlas and so on).

I hope this is somehow helpful.

Kind regards,

--Ryan

On Mon, Apr 14, 2025 at 10:32 AM Masato Narushima <ma...@riken.jp>
wrote:

> Hello,
> I want to use Apache Ranger to manage Apache Atlas users.
> If it is not correct to post here, please point it out.
>
> When I try to log in to Apache Atlas, I get the following message
> Error while authenticating
> Login process XXX returns 401.
> No other information on logs is available.
>
> The following settings are used to confirm this.
>
> Specified in the Apache Atlas configuration file
> (atlas-application.properties)
>
> atlas.authorizer.impl=org.apache.ranger.authorization.atlas.authorizer.RangerAtlasAuthorizer
> atlas.authentication.method.kerberos=false
> atlas.authentication.method.file=false
>
> Specify ranger-2.6.0-atlas-plugin
> install.properties
> Execute enable-atlas-plugin.sh
>
> The “test_ranger_atlas” service is configured for ranger and a user is
> added.
>
> Apache Atlas Authentication not configured?
> Please let us know if any necessary settings are missing or incorrect.
>
> Thanks & Regards,
> Narushima
>
>
>

Re: How does Apache Ranger and Apache Atlas work together?

Posted by Masato Narushima <ma...@riken.jp>.
Hello Umesh Padachetti san.

Thank you for your response.

I understood about the authentication failure.
My understanding about authentication and authorization was wrong.

I will try to modify the settings for authentication and authorization respectively.

Thank you very much.

Re: How does Apache Ranger and Apache Atlas work together?

Posted by Umesh Padashetty <us...@gmail.com>.
Hi Masato

As Ryan rightly mentioned above, Ranger is about Authorisation and not
Authentication. The HTTP 401 Error you see is due to Authentication failure
and not Authorization failure.

So you should be checking
https://atlas.apache.org/index.html#/Authentication and configuring at
least one of `*atlas.authentication.method`* to true. It could be one
of *kerberos,
ldap, file or keycloak*

From your above email I could see that you have
set atlas.authentication.method to false. Due to this, Atlas has no way to
deduce which auth mode to use and the 401 error you see is most likely due
to that.

Hope this helps

--
Thanks and Regards,
Umesh Padashetty


On Thu, 24 Apr 2025 at 08:29, Masato Narushima <ma...@riken.jp>
wrote:

> Hello, Ryan san
>
> Thanks for the answer.
> I'm afraid I don't understand it well enough, but I will check with Atlas
> and Ranger about the certification and authorization.
>
> https://atlas.apache.org/#/ AtlasRangerAuthorizer
> but it seems that my understanding is incorrect.
> I am also looking for, if possible, could you please refer me to a
> document that shows the relationship between Atlas and Ranger regarding
> certification and authorization?
>
> Best regards.
>

Re: How does Apache Ranger and Apache Atlas work together?

Posted by Masato Narushima <ma...@riken.jp>.
Hello, Ryan san

Thanks for the answer.
I'm afraid I don't understand it well enough, but I will check with Atlas and Ranger about the certification and authorization.

https://atlas.apache.org/#/ AtlasRangerAuthorizer
but it seems that my understanding is incorrect.
I am also looking for, if possible, could you please refer me to a document that shows the relationship between Atlas and Ranger regarding certification and authorization?

Best regards.