Skip to main content
Mondi
Silver ⭐️⭐️⭐️
May 27, 2020 11:10 AM UTC
Solved

Can't create roles using Sentry in Hue Interface

I want to create roles for my hive database management in Hue, but when I try to create roles using Sentry in Hue, I keep on getting this message : Unable to obtain groups in user :

I've already input my admin user to Sentry admin user
Screen Shot 2020-05-27 at 7.00.38 PM.png

paras
parasAnswer
Gold ⭐️⭐️⭐️
May 28, 2020 12:06 PM UTC

@Mondi 

 

You can simply add the hue admin user to the group of sentry admin.

Both the group and user should exist locally on cluster nodes and the hue admin user should be a part of this sentry admin group.

Refer below document to set ACLs for the directories.

https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cdh_sg_hdfs_ext_acls.html#xd_583c10bfdbd326ba--6eed2fb8-14349d04bee--76a9

 

Hope this helps,

Paras

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

6 replies

Mondi
MondiAuthor
Silver ⭐️⭐️⭐️
May 27, 2020 11:47 AM UTC

I'm getting this error also when i'm trying to create ACL on file browser

 

Screen Shot 2020-05-27 at 7.44.24 PM.png

Translate
paras
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
May 27, 2020 1:02 PM UTC

@Mondi 

 

The unable to obtain groups message indicates that the admin user on hue is not added to the cluster nodes. The user and its associated access groups should also be present on the cluster nodes.

Please create the user if it does not exist, add it to the group of sentry admins and retry.

 

What is the CDH version of your cluster?

Are you able to modify ACLs of the HDFS directories from the command line using setfacl commands as the same user?

Translate
Mondi
MondiAuthor
Silver ⭐️⭐️⭐️
May 28, 2020 2:35 AM UTC

Hi @paras do I need to add the user itself on the group of sentry admins? or the one that I must add is the group where the user is associated?

 

My CDH version is 6.3.2

 

I think I didn't do yet the modifying of ACLs of the HDFS directories, can you teach me how please? but I have enabled this already : dfs.namenode.acls.enabled

Translate