cancel
Showing results for 
Search instead for 
Did you mean: 

Connect Hortonworks Sandbox by lumira1.21, got permission denied error

Former Member
0 Kudos

I try to connect Hortonworks Sandbox 2.1 by Apache hadoop hive 0.13 simba jdbc4 hiveserver2, I can connect to the database, and even see all the tables under the database, but when I try to browse the data, I got the following error: HiveaccessControlException:Permission denied.

Please help! Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Henry_Banks
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I've not tried this, so i'm guessing here .. but a googlesearch brings up a Hive 2.1.x release note

8.8. Known Issues for Hive - Hortonworks Data Platform

BUG-16864: When Hive standard
authorization is enabled, the owner of the table backing index is missing.

Problem: The query fails with the
following error:

2014-04-16 16:50:13,312 ERROR [pool-7-thread-5]: ql.Driver (SessionState.java:printError(546)) - FAILED: HiveAccessControlException

Permission denied. Principal [name=hrt_qa, type=USER] does not have following privileges on Object [type=TABLE_OR_VIEW, name=default.default__missing_ddl_3_missing_ddl_3_index__] : [OBJECT OWNERSHIP] org.apache.hadoop.hive.ql.security.authorization.plugin.

HiveAccessControlException: Permission denied

.

but other searches for "HiveAccessControlException Permission denied"  seem to suggest it a case of granting permissions to the user http://hortonworks.com/community/forums/topic/sandbox-2-1-odbc-not-working/  like hive>> grant select on table <Mytable> to user hue;

Regards,

H

Former Member
0 Kudos

Hi Henry,

It is working. Just follow your instruction, grant select on table to user hue;

Thanks!

John

Henry_Banks
Product and Topic Expert
Product and Topic Expert
0 Kudos

good to hear, please mark this discussion as answered

regards

H

Henry_Banks
Product and Topic Expert
Product and Topic Expert
0 Kudos

just to conclude this thread, there is a most excellent tutorial for this integration topics, here http://scn.sap.com/docs/DOC-61453

regards,
H

Answers (0)