Support Questions

Find answers, ask questions, and share your expertise

Spark query vs beeline query


I can do query through   spark using spark.sql, but when I tried via beeline ranger is blocking the access because of the policy.  How does it work via spark query?  Doesn't it check HDFS level permission?  I


Expert Contributor



I have found a another community article that has addressed your concern. Please do check below:


That sounds like all is working as designed/implemented since Ranger does not currently (as of HDP 2.4) have a supported plug-in for Spark and knowing that when spark is reading Hive tables that it really isn't going through the "front door" of Hive to actual run queries (it is reading these files from HDFS directly).

That said, the underlying HDFS authorization policies (either w/or w/o using Ranger) will be honored if they are in-place.




Do mark it resolved if it really helps you.



Chethan YM