Support Questions
Find answers, ask questions, and share your expertise

How to grant permissions on _dummy_database/_dummy_table

While trying to use Hive date functions I encountered the following permissions error:

0: jdbc:hive2://,> 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?


@Carol Elliott

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.

@Carol Elliott Did you get chance to try this solution? Did it help.


Hello @bandarusridhar1 , I'm new in big data, please give me exactly the steps to implement you solution 

@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!

; ;