Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
0.4.0
-
HiveServer2 on Ambari with Ranger plugin enabled
-
Important
Description
When doing with beeline
!connect jdbc:hive2://192.168.6.210:10000/db1;principal=hive/hivehost@REALM org.apache.hive.jdbc.HiveDriver
I can connect to db1, and even make a show tables without having any authorizing policy for these actions.
And I am sure I have no right to connect and see these tables, because when doing
!connect jdbc:hive2://192.168.6.210:10000/;principal=hive/hivehost@REALM org.apache.hive.jdbc.HiveDriver
I can't make a use db1 without the error :
Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [testuser] does not have [USE] privilege on [db1] (state=42000,code=40000)