<?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: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221928#M82251</link>
    <description>&lt;P&gt;It is a REST call to Ranger Admin. Property ranger.plugin.&amp;lt;plugin_name&amp;gt;.policy.rest.url will be used to communicate to Ranger Admin.&lt;/P&gt;&lt;P&gt;eg: ranger.plugin.hive.policy.rest.url for Hive and by default it checks every 30 seconds with Ranger Admin to check if there are any changes with regards to current policy cached, and if so, it downloads the new policy and caches the same.&lt;/P&gt;&lt;P&gt;Default Policy Cache location would be /etc/ranger/&amp;lt;CLUSTER_NAME&amp;gt;_&amp;lt;PLUGIN_COMPONENT_NAME&amp;gt;/policycache on the host where service is runing&lt;/P&gt;&lt;P&gt;eg:- /etc/ranger/hdptest_hive/policycache on Hiveserver2 for my cluster.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Aug 2018 17:06:03 GMT</pubDate>
    <dc:creator>cravani</dc:creator>
    <dc:date>2018-08-16T17:06:03Z</dc:date>
    <item>
      <title>Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221925#M82248</link>
      <description>&lt;P&gt;I want to know whether Hive syncs the Ranger policies and uses that cache to provide authorization or will it hit Ranger for every request that needs to be authorized&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:30:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221925#M82248</guid>
      <dc:creator>shashankvc</dc:creator>
      <dc:date>2018-08-16T14:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221926#M82249</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/62423/vcshashank.html" nodeid="62423"&gt;@Shashank V C &lt;/A&gt;&lt;P&gt;All the plugins that use Ranger as an authorization module will cache local policy and use the same for authorization purpose. Below is an excerpt from Apache Ranger overview: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Plugins are lightweight Java programs which embed within processes of each cluster component. For example, the Apache Ranger plugin for Apache Hive is embedded within Hiveserver2. These plugins pull in policies from a central server and store them locally in a file. When a user request comes through the component, these plugins intercept the request and evaluate it against the security policy. Plugins also collect data from the user request and follow a separate thread to send this data back to the audit server.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;Reference: &lt;A href="https://hortonworks.com/apache/ranger/#section_2" target="_blank"&gt;https://hortonworks.com/apache/ranger/#section_2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;PS: Please mark the answer if you find it correct &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Aug 2018 16:26:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221926#M82249</guid>
      <dc:creator>cravani</dc:creator>
      <dc:date>2018-08-16T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221927#M82250</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15788/cravani.html" nodeid="15788"&gt;@Chiran Ravani&lt;/A&gt;Thank you so much, do you know how the policies are pulled from the Ranger? Is it a thrift communication or something else?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 16:58:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221927#M82250</guid>
      <dc:creator>shashankvc</dc:creator>
      <dc:date>2018-08-16T16:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221928#M82251</link>
      <description>&lt;P&gt;It is a REST call to Ranger Admin. Property ranger.plugin.&amp;lt;plugin_name&amp;gt;.policy.rest.url will be used to communicate to Ranger Admin.&lt;/P&gt;&lt;P&gt;eg: ranger.plugin.hive.policy.rest.url for Hive and by default it checks every 30 seconds with Ranger Admin to check if there are any changes with regards to current policy cached, and if so, it downloads the new policy and caches the same.&lt;/P&gt;&lt;P&gt;Default Policy Cache location would be /etc/ranger/&amp;lt;CLUSTER_NAME&amp;gt;_&amp;lt;PLUGIN_COMPONENT_NAME&amp;gt;/policycache on the host where service is runing&lt;/P&gt;&lt;P&gt;eg:- /etc/ranger/hdptest_hive/policycache on Hiveserver2 for my cluster.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 17:06:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221928#M82251</guid>
      <dc:creator>cravani</dc:creator>
      <dc:date>2018-08-16T17:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221929#M82252</link>
      <description>&lt;P&gt;Thanks Chiran, one last thing, do you know the .java file in hive where there are doing this rest call? This would help me a lot. Im trying to understanding from the starting point of the rest call to the build up of cache and successive hits to cache. Thus it will help me if I can get the class name where this Rest call happens. I checked PrivilegeSynchonizer.java. But not sure whether thats the right place.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 17:18:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221929#M82252</guid>
      <dc:creator>shashankvc</dc:creator>
      <dc:date>2018-08-16T17:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221930#M82253</link>
      <description>&lt;P&gt;You're Welcome. I would start with RangerAdminRESTClient.java&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 18:23:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221930#M82253</guid>
      <dc:creator>cravani</dc:creator>
      <dc:date>2018-08-16T18:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Will hive caches all the Apache Ranger policies periodically to provide authorization? Or will it hit Ranger for every request needs to be authorized?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221931#M82254</link>
      <description>&lt;P&gt;Hi Chiran,&lt;/P&gt;&lt;P&gt;I could understand the details above. However i have one question- Which user does the call for ranger.plugin.hive.policy.rest.url for the first time and subsequent attempts?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In my case i have ranger installed in separate server and cluster in separate servers. What is the authentication and user involved by rest client for talking to each other?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I found from ranger audits and could see curl entries for "admin" user and no other further attempts to authenticate?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 09:36:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-hive-caches-all-the-Apache-Ranger-policies-periodically/m-p/221931#M82254</guid>
      <dc:creator>shoknu</dc:creator>
      <dc:date>2019-08-07T09:36:38Z</dc:date>
    </item>
  </channel>
</rss>

