CDH version: 5.3
Spark Version: 1.2 

I was trying to execute a Hive query from Spark code(using HiveContext
class). It was working fine untill we installed Apache Sentry. Now its
giving me read permission exception. 

/org.apache.hadoop.security.AccessControlException: Permission denied:
user=kakn, access=READ_EXECUTE,
inode="/user/hive/warehouse/rt_freewheel_mastering.db/digital_profile_cluster_in":hive:hive:drwxrwx--t/

I understand this exception since with Sentry you can read/write the Hive
warehouse table directories only with "hive" user. It is Sentry which does
the user translation from a user e.g "kakn" in below case to hive. The query
has to go via HiveServer2 for the user translation. Spark code(HiveContext)
seems to run the query on its own(Hive CLI) and bypasses HiveServer2. Is
there any way to make the query execution go through HiveServer2? 

I am stuck here, any suggestions comments would be really appreciated.
Thanks.





--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-SQL-incompatible-with-Apache-Sentry-Cloudera-bundle-tp23477.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to