- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [admin] does not have [USE] privilege on [null] [ERROR_STATUS]
- Labels:
-
Apache Ambari
-
Apache Hive
-
Apache Ranger
Created ‎07-20-2016 04:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I am trying to access my hive databases from Hive View, am getting above error.
Does anyone has any idea about this that why we get such error from hive view ?
Created ‎07-20-2016 04:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you have logged in as admin and trying to do operations, Refer Link and create hdfs directory for admin and give appropriately permissions . It will works
- Connect to a host in the cluster that includes the HDFS client.
- Switch to the hdfs system account user.
su - hdfs
- Using the HDFS client, make an HDFS directory for the user. For example, if your username is admin, you would create the following directory.
hadoop fs -mkdir /user/admin
- Set the ownership on the newly created directory. For example, if your username is admin, you would make that user the directory owner.
hadoop fs -chown admin:hadoop /user/admin
Created ‎07-20-2016 06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
create a hive policy in ranger to allow admin user to access hive
Created ‎07-20-2016 07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also verify and ensure that hadoop.proxyuser.hive.users/group are set to * in hdfs-configs [core-site].
Created ‎07-21-2016 09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @revan wabale ,
to answer your question clearly we need to know what type of authorization you are using for Hive.
Do you have Ranger in place? If not maybe the following link shines some light on authentication in Hiveserver2 link
Regards...
Created ‎02-15-2017 08:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have the same problem and when i've done all the steps as previously mentioned above I still get permissions denied. Can someone help me please?
Created ‎05-18-2017 10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For me the following fixed it. Set the following configs on hive:
webhcat.proxyuser.root.groups *
webhcat.proxyuser.root.hosts *
Created ‎02-09-2018 09:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
INSERT OVERWRITE DIRECTORY "hdfs://sandbox-hdp.hortonworks.com/tmp/hey2" SELECT * FROM mytable;
(i.e. you need to specify full name of cluster) works fine when you have correct configuration in Ranger, but INSERT OVERWRITE DIRECTORY "/tmp/hey2" SELECT * FROM mytable; will fail. At least this is true for HDP 2.6.3
