<?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: Apache Ranger : Issues in Syncing the UI policy to beeline and setting up of metastore plugin in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124458#M47289</link>
    <description>&lt;P&gt;Thanks for the reply Ramesh. One more question is the hive plugin compatible with Spark thrift server (i.e) Can it be used with spark thrift server? &lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 15:15:11 GMT</pubDate>
    <dc:creator>sriram_rangaraj</dc:creator>
    <dc:date>2016-11-29T15:15:11Z</dc:date>
    <item>
      <title>Apache Ranger : Issues in Syncing the UI policy to beeline and setting up of metastore plugin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124456#M47287</link>
      <description>&lt;P&gt;I am trying to implement  the following : &lt;/P&gt;&lt;P&gt;1) Ranger Hive plugin  &lt;/P&gt;&lt;P&gt;2) Set up ranger plugin for metastore &lt;/P&gt;&lt;P&gt;using HDP 2.5, ranger 0.6.0&lt;/P&gt;&lt;P&gt;Below are some of the settings in hive-site.xml :&lt;/P&gt;&lt;P&gt;hive.metastore.pre.event.listeners=org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListener
  hive.security.metastore.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.DefaultHiveMetastoreAuthorizationProvider&lt;/P&gt;&lt;P&gt;hive.users.in.admin.role=admin,root&lt;/P&gt;&lt;P&gt;hive.server2.enable.doAs=true
hive.security.authorization.enabled=true
  hive.security.authorization.manager=org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory
  hive.security.authenticator.manager=org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator
  hive.conf.restricted.list=hive.security.authorization.enabled,hive.security.authorization.manager,hive.security.authenticator.manager&lt;/P&gt;&lt;P&gt;Following are the questions that I have for the above implementation : &lt;/P&gt;&lt;P&gt;1) When I create a policy in the Ranger Policy Manger UI and try to test it out from beeline, it is not working. Are the above settings in the hive-site.xml correct?&lt;/P&gt;&lt;P&gt;2) If I create a new role and set it to user from hive CLI, will i be able to see that in the Ranger Policy Manager UI -&amp;gt;HiveService-&amp;gt;SERVICE_NAME&lt;/P&gt;&lt;P&gt;3) Is HDFS plugin mandatory for the above set-up? i.e can I set policies from UI and hive CLI without using HDFS policy and HDFS plugin setup? &lt;/P&gt;&lt;P&gt;4) is Solr installation mandatory for setting up the ranger-hive-plugin?(in my current set-up, i dont have the solr setup) &lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:31:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124456#M47287</guid>
      <dc:creator>sriram_rangaraj</dc:creator>
      <dc:date>2016-11-28T13:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Ranger : Issues in Syncing the UI policy to beeline and setting up of metastore plugin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124457#M47288</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14555/sriramrangarajanramasamy.html" nodeid="14555"&gt;@Sriram Rangarajan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Apache Ranger doesn't have a plugin for Hive Metastore as such. Ranger Plugin which is there is for HiveServer2. Please refer this doc for the supported plugins &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_installing_manually_book/content/installing_ranger_plugins.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_installing_manually_book/content/installing_ranger_plugins.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you are specifically looking for Ranger Hive Metastore plugin it is in design stage and refer this &lt;A href="https://cwiki.apache.org/confluence/display/RANGER/Design+Proposal+for+Hive+Metastore+Plugin" target="_blank"&gt;https://cwiki.apache.org/confluence/display/RANGER/Design+Proposal+for+Hive+Metastore+Plugin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding your questions&lt;/P&gt;&lt;P&gt;Q 1) Test connection config for Hive Plugin Please refer &lt;A href="https://community.hortonworks.com/questions/25115/ranger-hive-repository-test-connection-fails-in-ke.html" target="_blank"&gt;https://community.hortonworks.com/questions/25115/ranger-hive-repository-test-connection-fails-in-ke.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Q 2 ) No, you wont be able to see those Roles, its not supported in Ranger hive Plugin. In Ranger UI when you create policy you will see the Privileges like "select", "insert", "update", "delete" that you can assign to the user in the form of Permissions. But if you are creating a role say for example "marketing" and "finance" these won't appear in Ranger UI.&lt;/P&gt;&lt;P&gt;Q 3) No, HDFS plugin is not mandatory for hive plugin to work.&lt;/P&gt;&lt;P&gt;Q 4)  Solr in ranger is used for storing the audit for the authorization done, it not mandatory, although you won't be able to avail the auditing feature in the ranger.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 01:11:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124457#M47288</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-11-29T01:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Ranger : Issues in Syncing the UI policy to beeline and setting up of metastore plugin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124458#M47289</link>
      <description>&lt;P&gt;Thanks for the reply Ramesh. One more question is the hive plugin compatible with Spark thrift server (i.e) Can it be used with spark thrift server? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 15:15:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124458#M47289</guid>
      <dc:creator>sriram_rangaraj</dc:creator>
      <dc:date>2016-11-29T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Ranger : Issues in Syncing the UI policy to beeline and setting up of metastore plugin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124459#M47290</link>
      <description>&lt;P&gt;Hive ranger plugin is only for HiveServer2 and not for Spark thrift Server. LLAP in HDP2.5 Tech preview would be another option for it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 06:10:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Ranger-Issues-in-Syncing-the-UI-policy-to-beeline-and/m-p/124459#M47290</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-12-01T06:10:15Z</dc:date>
    </item>
  </channel>
</rss>

