Created on 01-12-2017 10:34 AM - edited 09-16-2022 03:54 AM
How to create the following roles:
Auditor, Read-Only, Limited Operator, Operator, Configurator, Cluster Administrator ,BDR Administrator, Navigator Administrator, User Administrator, Key Administrator, Full Administrator
Can you please tell me if possible to create from cloudera manager or hue editor logged in as administrator. hdfs account.
We are having issues, the moment with enabled teh sentry, all schemas are disappearing straight seems like the roles are not defined thats why not seeing anything, now reverted back to unchecking sentry from hive configuration.
Thanks a lot for the helpful info.
Created 01-12-2017 12:38 PM
Since you have mentioned the word "user role", I want to clarify this
You have to understand the difference between Group, User and Role
Group and User to be created in both Linux(root user) and Hue(as admin user)
But Role to be created only in Hue
Ex: Login as root in Linux and apply below commands.
Group:
groupadd hive;
groupadd hue;
groupadd impala;
groupadd analyst;
groupadd admin;
# In your case, your Group suppose to be..
Auditor, Read-Only, Limited Operator, Operator, Configurator, Cluster Administrator ,BDR Administrator, Navigator Administrator, User Administrator, Key Administrator, Full Administrator
User:
useradd kumar;
# User belongs to Group
usermod -a -G hive,hue,impala,admin,analyst kumar;
passwd kumar;
# Role assigned to Group:
Now, login to Hue -> Security(Menu)-> Sentry Tables -> Add Roles (as Hive user)
Created 01-12-2017 11:12 AM
1. Login to Linux: Create required Group & User
2. Login to Hue: Either sync with LDAP or Create required Group & User manually.
Note1: You have to login as "admin user" to manage user/group Note2: Make sure Linux Group & User exactly matches to Hue Group & user
3. Login to Hue: Create Roles for each DB/Tables by Hue -> Security(Menu)-> Sentry Tables -> Add Roles
Note1: You have to login as "Hive user". Because CM -> Sentry -> Configuration -> Admin Groups -> Default values are Hive, Impala, Solr, Hue
Thanks
Kumar
Created 01-12-2017 12:02 PM
Created 01-12-2017 12:38 PM
Since you have mentioned the word "user role", I want to clarify this
You have to understand the difference between Group, User and Role
Group and User to be created in both Linux(root user) and Hue(as admin user)
But Role to be created only in Hue
Ex: Login as root in Linux and apply below commands.
Group:
groupadd hive;
groupadd hue;
groupadd impala;
groupadd analyst;
groupadd admin;
# In your case, your Group suppose to be..
Auditor, Read-Only, Limited Operator, Operator, Configurator, Cluster Administrator ,BDR Administrator, Navigator Administrator, User Administrator, Key Administrator, Full Administrator
User:
useradd kumar;
# User belongs to Group
usermod -a -G hive,hue,impala,admin,analyst kumar;
passwd kumar;
# Role assigned to Group:
Now, login to Hue -> Security(Menu)-> Sentry Tables -> Add Roles (as Hive user)