Created 01-03-2018 01:23 PM
While trying to use Hive date functions I encountered the following permissions error:
0: jdbc:hive2://xxxxx.xxx.xxx.xxx:2181,> SELECT DATE_ADD('2017-12-21', 1);
Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [xxxxx] does not have [SELECT] privilege on [_dummy_database/_dummy_table] (state=42000,code=40000)
How can permissions be granted to users, groups, or public on the dummy database/dummy table in Hive?
Created 01-06-2018 05:54 AM
You can grant workaround by creating Ranger policy on _dummy_database. Ranger doesn't really check the database, just grant full access on _dummy_database to all. Guess you are hitting the same HIVE-11498 bug which I have already experienced.
If you are using SQL Standard Based Hive Authorization, please create _dummy_database and give them access to that database.
Hope this helps you.
Created 01-16-2018 06:02 PM
@Carol Elliott Did you get chance to try this solution? Did it help.
Created 12-11-2019 12:53 AM
Hello @bandarusridhar1 , I'm new in big data, please give me exactly the steps to implement you solution
Created 01-16-2018 09:16 PM
@Sridhar Reddy Yes, it worked! I tried to update the post to tell you that but apparently my update didn't stick. Thanks so much!