<?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: Ranger Hive Plugin in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-Hive-Plugin/m-p/314244#M225930</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp; Excuse for the delayed response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the screenshot of the policy in ranger.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hivedev policies" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30842iFC91DB020F36DE7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image.png" alt="hivedev policies" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;hivedev policies&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Test policy -1" style="width: 988px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30843iAE166F652AA59CC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (1).png" alt="Test policy -1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Test policy -1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Test policy - 2" style="width: 979px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30844i6CB061A7AB8645FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (2).png" alt="Test policy - 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Test policy - 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So according to policy, 'shaz' should have access 'qubz' database and 'edward' should not have access to the 'qubz' database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beeline:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edward@dev-2:~$ beeline&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/usr/hdp/apache-hive-3.1.0-bin/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/usr/hdp/hadoop-3.1.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;BR /&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;BR /&gt;Beeline version 3.1.0 by Apache Hive&lt;BR /&gt;beeline&amp;gt; !connect jdbc:hive2://dev-2:10000/;&lt;BR /&gt;Connecting to jdbc:hive2://dev-2:10000/;&lt;BR /&gt;Enter username for jdbc:hive2://dev-2:10000/: edward&lt;BR /&gt;Enter password for jdbc:hive2://dev-2:10000/:&lt;BR /&gt;Connected to: Apache Hive (version 3.1.0)&lt;BR /&gt;Driver: Hive JDBC (version 3.1.0)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;0: jdbc:hive2://dev-2:10000/&amp;gt; show databases;&lt;BR /&gt;INFO : Compiling command(queryId=root_20210407130935_a28fc25d-2398-4e61-a205-f24e3ba937f1): show databases&lt;BR /&gt;INFO : Concurrency mode is disabled, not creating a lock manager&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:database_name, type:string, comment:from deserializer)], properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=root_20210407130935_a28fc25d-2398-4e61-a205-f24e3ba937f1); Time taken: 0.01 seconds&lt;BR /&gt;INFO : Concurrency mode is disabled, not creating a lock manager&lt;BR /&gt;INFO : Executing command(queryId=root_20210407130935_a28fc25d-2398-4e61-a205-f24e3ba937f1): show databases&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=root_20210407130935_a28fc25d-2398-4e61-a205-f24e3ba937f1); Time taken: 0.015 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;INFO : Concurrency mode is disabled, not creating a lock manager&lt;BR /&gt;+----------------+&lt;BR /&gt;| database_name |&lt;BR /&gt;+----------------+&lt;BR /&gt;| default |&lt;BR /&gt;| kylin |&lt;BR /&gt;| mytesting |&lt;BR /&gt;| qubz |&lt;BR /&gt;+----------------+&lt;BR /&gt;4 rows selected (0.115 seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://dev-2:10000/&amp;gt; show tables from qubz;&lt;BR /&gt;INFO : Compiling command(queryId=root_20210407131007_896cb7af-5452-4b5e-bd6c-1393c25e1bd7): show tables from qubz&lt;BR /&gt;INFO : Concurrency mode is disabled, not creating a lock manager&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:tab_name, type:string, comment:from deserializer)], properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=root_20210407131007_896cb7af-5452-4b5e-bd6c-1393c25e1bd7); Time taken: 0.016 seconds&lt;BR /&gt;INFO : Concurrency mode is disabled, not creating a lock manager&lt;BR /&gt;INFO : Executing command(queryId=root_20210407131007_896cb7af-5452-4b5e-bd6c-1393c25e1bd7): show tables from qubz&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=root_20210407131007_896cb7af-5452-4b5e-bd6c-1393c25e1bd7); Time taken: 0.013 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;INFO : Concurrency mode is disabled, not creating a lock manager&lt;BR /&gt;+-----------+&lt;BR /&gt;| tab_name |&lt;BR /&gt;+-----------+&lt;BR /&gt;+-----------+&lt;BR /&gt;No rows selected (0.043 seconds)&lt;BR /&gt;&lt;BR /&gt;But, edward was able to see 'qubz' db ( to which he was restricted access, In old Ranger, DB will not be even visible - Is this expected here? ) but no tables visible, whereas 'shaz' user was able to view the DB as well as tables as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 13:29:53 GMT</pubDate>
    <dc:creator>shaz11</dc:creator>
    <dc:date>2021-04-07T13:29:53Z</dc:date>
  </channel>
</rss>

