<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Does Spark job honor Ranger hive policies? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147762#M35886</link>
    <description>&lt;P&gt;The workaround is to use SQLContext (instead of HiveContext) and JDBC to connect to HiveServer2 which will honor ranger's authorization policies. &lt;/P&gt;&lt;P&gt;Following links will give you some idea about how Spark, JDBC and SQLContext works. &lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/32195946/method-not-supported-in-spark" target="_blank"&gt;http://stackoverflow.com/questions/32195946/method-not-supported-in-spark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_dataintegration/content/hive-jdbc-odbc-drivers.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_dataintegration/content/hive-jdbc-odbc-drivers.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 15:54:33 GMT</pubDate>
    <dc:creator>jay1ram2</dc:creator>
    <dc:date>2016-11-17T15:54:33Z</dc:date>
    <item>
      <title>Does Spark job honor Ranger hive policies?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147760#M35884</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am running a Spark job on ranger enabled HDP cluster. This spark job reads from a hive table and writes to another hive table. What I am seeing is that the ranger hive policies are not being honored.&lt;/P&gt;&lt;P&gt;Is this the expected behavior of Spark job with ranger? Is spark supported with ranger?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:12:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147760#M35884</guid>
      <dc:creator>praneet_223</dc:creator>
      <dc:date>2016-07-26T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Does Spark job honor Ranger hive policies?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147761#M35885</link>
      <description>&lt;P&gt;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).  &lt;/P&gt;&lt;P&gt;That said, the underlying HDFS authorization policies (either w/or w/o using Ranger) will be honored if they are in-place.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 22:23:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147761#M35885</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2016-07-26T22:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does Spark job honor Ranger hive policies?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147762#M35886</link>
      <description>&lt;P&gt;The workaround is to use SQLContext (instead of HiveContext) and JDBC to connect to HiveServer2 which will honor ranger's authorization policies. &lt;/P&gt;&lt;P&gt;Following links will give you some idea about how Spark, JDBC and SQLContext works. &lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/32195946/method-not-supported-in-spark" target="_blank"&gt;http://stackoverflow.com/questions/32195946/method-not-supported-in-spark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_dataintegration/content/hive-jdbc-odbc-drivers.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_dataintegration/content/hive-jdbc-odbc-drivers.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 15:54:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Spark-job-honor-Ranger-hive-policies/m-p/147762#M35886</guid>
      <dc:creator>jay1ram2</dc:creator>
      <dc:date>2016-11-17T15:54:33Z</dc:date>
    </item>
  </channel>
</rss>

