Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

when i am create hive query its getting error

avatar
New Member

Error occurred executing hive query: Error while compiling statement: No privilege 'Create' found for outputs { database:hdfs_db}

1 ACCEPTED SOLUTION

avatar
Super Guru
@prathap t

I see this is similar to the BUG reported - https://issues.apache.org/jira/browse/HIVE-11205

Also check this, this might help you work -http://www.openkb.info/2015/03/how-to-enable-hive-default-authorization.html

Make sure you have below property properly set and grants in place -

<property> <name>hive.security.authorization.enabled</name> <value>true</value> <description>enable or disable the hive client authorization</description> </property> <property> <name>hive.security.authorization.createtable.owner.grants</name> <value>ALL</value> <description>the privileges automatically granted to the owner whenever a table gets created. An example like "select,drop" will grant select and drop privilege to the owner of the table</description> </property>

View solution in original post

4 REPLIES 4

avatar
Super Guru
@prathap t

I see this is similar to the BUG reported - https://issues.apache.org/jira/browse/HIVE-11205

Also check this, this might help you work -http://www.openkb.info/2015/03/how-to-enable-hive-default-authorization.html

Make sure you have below property properly set and grants in place -

<property> <name>hive.security.authorization.enabled</name> <value>true</value> <description>enable or disable the hive client authorization</description> </property> <property> <name>hive.security.authorization.createtable.owner.grants</name> <value>ALL</value> <description>the privileges automatically granted to the owner whenever a table gets created. An example like "select,drop" will grant select and drop privilege to the owner of the table</description> </property>

avatar
New Member

but its not sand box how to apply patch file in that please explain step by step...

avatar
Super Guru
@prathap t

You cannot apply patch. The BUG will be taken care in upcomming version of HDP. There might be relavent BUG filed in hortonworks jira.

avatar
New Member

but its not sand box how to apply patch file in that please explain step by step...