Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Creating table by using spark-shell failing from HiveWarehouseConnector with the following error in Hive

Highlighted

Creating table by using spark-shell failing from HiveWarehouseConnector with the following error in Hive

Super Collaborator

Dear members,


i am connecting Hive by using Hive_warehouse_connector from spark-shell with spark user. getting below error while creating the database


java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=anonymous, access=EXECUTE, inode="/warehouse/tablespace/managed/hive/hive_test.db/":hive:hadoop:drwxdrwx---


Here my question is why spark-shell using anonymous user to contact hive database instead of spark user?