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?
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.