<?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 Use Hive policies as access to database and ignore HDFS permissions to database file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111685#M74533</link>
    <description>&lt;P&gt;I use ambari v 2.1.1 and HDP 2.3. I would like to ask if there is a possibility to use Hive policies instead of HDFS policies to access a database in Hive. When I try to use select on any table in database I receive the following error: &lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;FAILED: SemanticException Unable to determine if hdfs://MY_CLUSTER/apps/hive/warehouse/db_name.db/table_name is encrypted: org.apache.hadoop.security.AccessControlException: Permission denied: user=my_user &lt;/EM&gt;(not hive)&lt;EM&gt;, access=EXECUTE, inode="/apps/hive/warehouse/db_name.db/table_name":hive:hdfs:drwx------&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;I set &lt;EM&gt;hive.server2.enable.doAs&lt;/EM&gt; to false, and any user should be interpreted as hive (in accessing to database) but is still interpreted as the user who calls to it. I would like users not to have access to databases (to prevent copying them or any other security reason) as a files in HDFS but their access should be configured in Ranger Hive policies only.&lt;/P&gt;&lt;P&gt;Could somebody help me to configure that? Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2016 22:34:46 GMT</pubDate>
    <dc:creator>frank93</dc:creator>
    <dc:date>2016-03-04T22:34:46Z</dc:date>
    <item>
      <title>Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111685#M74533</link>
      <description>&lt;P&gt;I use ambari v 2.1.1 and HDP 2.3. I would like to ask if there is a possibility to use Hive policies instead of HDFS policies to access a database in Hive. When I try to use select on any table in database I receive the following error: &lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;FAILED: SemanticException Unable to determine if hdfs://MY_CLUSTER/apps/hive/warehouse/db_name.db/table_name is encrypted: org.apache.hadoop.security.AccessControlException: Permission denied: user=my_user &lt;/EM&gt;(not hive)&lt;EM&gt;, access=EXECUTE, inode="/apps/hive/warehouse/db_name.db/table_name":hive:hdfs:drwx------&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;I set &lt;EM&gt;hive.server2.enable.doAs&lt;/EM&gt; to false, and any user should be interpreted as hive (in accessing to database) but is still interpreted as the user who calls to it. I would like users not to have access to databases (to prevent copying them or any other security reason) as a files in HDFS but their access should be configured in Ranger Hive policies only.&lt;/P&gt;&lt;P&gt;Could somebody help me to configure that? Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 22:34:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111685#M74533</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-03-04T22:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111686#M74534</link>
      <description>&lt;P&gt;You are correct there setting hive.server2.enable.doAs = false should run hive jobs as 'hive' user or the owner of hive daemon. After you make this change, you will need to restart hive service. Steps:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/blog/best-practices-for-hive-authorization-using-apache-ranger-in-hdp-2-2/" target="_blank"&gt;http://hortonworks.com/blog/best-practices-for-hive-authorization-using-apache-ranger-in-hdp-2-2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some additional information: Do you have Ranger up and running? Are Ranger hdfs and hive plugins enabled?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 04:45:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111686#M74534</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2016-03-05T04:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111687#M74535</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3241/frank93.html" nodeid="3241"&gt;@Edgar Daeds&lt;/A&gt;&lt;P&gt;&lt;EM&gt;FAILED:SemanticExceptionUnable to determine if hdfs://MY_CLUSTER/apps/hive/warehouse/db_name.db/table_name is encrypted:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Permission denied: user=my_user &lt;/EM&gt;(not hive)&lt;EM&gt;, access=EXECUTE, inode="/apps/hive/warehouse/db_name.db/table_name"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Do you have encryption in place? &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;my_user does not have x on that table&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/10367/apache-ranger-and-hive-column-level-security.html" target="_blank"&gt;https://community.hortonworks.com/articles/10367/apache-ranger-and-hive-column-level-security.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 10:26:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111687#M74535</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-03-05T10:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111688#M74536</link>
      <description>&lt;P&gt;Thank you guys for answers,&lt;/P&gt;&lt;P&gt;The problem occurs when I use Hive CLI. If I use Beeline CLI it works very well. So is it normal behavior and should I stop using Hive?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:24:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111688#M74536</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-03-07T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111689#M74537</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3241/frank93.html" nodeid="3241"&gt;@Edgar Daeds&lt;/A&gt;&lt;P&gt; The best practice is to stop using Hive CLI. For example: Ranger and Hive works with beeline. Hive CLI does not work with Ranger Hive policies &lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:31:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111689#M74537</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-03-07T16:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111690#M74538</link>
      <description>&lt;P&gt;Och, now I understand, thank you! And how about Hue, is it also using beeline?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:01:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111690#M74538</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-03-07T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111691#M74539</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3241/frank93.html" nodeid="3241"&gt;@Edgar Daeds&lt;/A&gt; I used Hue was a year ago because of Ambari views&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/ch_using_hive_view.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/ch_using_hive_view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:10:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111691#M74539</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-03-07T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111692#M74540</link>
      <description>&lt;P&gt;Thanks! I did not hear about Ambari views. I am going into it&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:23:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111692#M74540</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-03-07T18:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111693#M74541</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3241/frank93.html" nodeid="3241"&gt;@Edgar Daeds&lt;/A&gt; See this &lt;A href="https://community.hortonworks.com/content/kbentry/2947/new-visualization-feature-in-hive-view.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/2947/new-visualization-feature-in-hive-view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:30:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111693#M74541</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-03-07T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use Hive policies as access to database and ignore HDFS permissions to database file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111694#M74542</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3241/frank93.html" nodeid="3241"&gt;@Edgar Daeds&lt;/A&gt;  Please do accept the best answer to close this&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-Hive-policies-as-access-to-database-and-ignore-HDFS/m-p/111694#M74542</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-03-07T18:31:00Z</dc:date>
    </item>
  </channel>
</rss>

