Created 05-15-2015 08:28 AM
I am not getting an option to add roles directly in HUE UI for sentry for give privilges to roles.
Right now i am using beeline to create roles and grant permission to databases . Is there any way , can i sync the roles that are created in beeline to hue UI .
OR Do i need to add roles manually in HUE UI . Can anyone help on this issue.
Created 05-15-2015 09:07 AM
Created 05-15-2015 09:42 AM
Created 05-15-2015 10:19 AM
Created 06-17-2015 11:36 AM
Able to create roles, but even after assigning role to user that user is un able to access tables in impala. I have followed all instuctions on setting permissions on the /user/hive/warehouse then enabling sentry for hue,hive,impala. Created group called "impala" and added role with permissions "ALL" on table X. User is still not able to run any commnad on table X.
Created 10-09-2016 01:00 AM
Created 11-26-2018 11:10 PM
I create maroof user on operating system with group maroof. then from hue browser i login from impala user which is sentry admin user. i create role named "readonly" and grant privileges of select on hive database default. now from hive CLI when i login from maroof OS user it allow me to select tables in hive default database. i also created user in hue browser with same name maroof when i select hive default tables then it throw error.
"AuthorizationException: User 'maroof' does not have privileges to execute 'SELECT' on: default.test101 "
but same select working fine from hive CLI and from hue browser it not allow me to select. what will be the issue?
Can anyone help me? please.
Created 12-12-2018 08:45 PM
Can anyone help me in this.. I am able to create roles and assign to groups through hue UI but when i am trying to do samething with beeline by login to specific user i am not able to create the table. From Hue UI i can create the table from same username
sh-4.2$ beeline -u "jdbc:hive2://kabo1.unraveldatalab.com:10000/movieprod"
scan complete in 3ms
Connecting to jdbc:hive2://kabo1.unraveldatalab.com:10000/movieprod
Connected to: Apache Hive (version 1.1.0-cdh5.14.4)
Driver: Hive JDBC (version 1.1.0-cdh5.14.4)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 1.1.0-cdh5.14.4 by Apache Hive
Beeline version 1.1.0-cdh5.14.4 by Apache Hive
0: jdbc:hive2://kabo1.unraveldatalab.com:1000> CREATE TABLE ratings (
. . . . . . . . . . . . . . . . . . . . . . .> userid INT,
. . . . . . . . . . . . . . . . . . . . . . .> movieid INT,
. . . . . . . . . . . . . . . . . . . . . . .> rating INT,
. . . . . . . . . . . . . . . . . . . . . . .> tstamp STRING
. . . . . . . . . . . . . . . . . . . . . . .> ) ROW FORMAT DELIMITED
. . . . . . . . . . . . . . . . . . . . . . .> FIELDS TERMINATED BY '#'
. . . . . . . . . . . . . . . . . . . . . . .> STORED AS TEXTFILE;
Error: Error while compiling statement: FAILED: SemanticException No valid privileges
User anonymous does not have privileges for CREATETABLE
The required privileges: Server=server1->Db=movieprod->action=*; (state=42000,code=40000)
0: jdbc:hive2://kabo1.unraveldatalab.com:1000>
Created 04-28-2020 04:24 AM
Hello,
This happens when your user is not in the impala, hive groups. You should add this user to linux hive, impala groups on all nodes.
The hive, impala groups are Sentry admin groups by default. That is why after you add the user to hive and impala groups, you can see the databases and tables.
Regards,
Huriye Akbaş