<?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: What is the best way to implement row-based security in Hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95133#M8446</link>
    <description>&lt;P&gt;Row based security can be achieved through &lt;A href="https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization"&gt;SQL Standard Based Hive Authorization&lt;/A&gt;.You can create a view with the filter from the original table and then GRANT permissions to role or individual user.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 02:49:39 GMT</pubDate>
    <dc:creator>deepesh1</dc:creator>
    <dc:date>2015-10-09T02:49:39Z</dc:date>
    <item>
      <title>What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95131#M8444</link>
      <description />
      <pubDate>Fri, 09 Oct 2015 02:09:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95131#M8444</guid>
      <dc:creator>rmccollam</dc:creator>
      <dc:date>2015-10-09T02:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95132#M8445</link>
      <description>&lt;P&gt;I believe this would currently be through Hive views&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 02:15:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95132#M8445</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-10-09T02:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95133#M8446</link>
      <description>&lt;P&gt;Row based security can be achieved through &lt;A href="https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization"&gt;SQL Standard Based Hive Authorization&lt;/A&gt;.You can create a view with the filter from the original table and then GRANT permissions to role or individual user.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 02:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95133#M8446</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-09T02:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95134#M8447</link>
      <description>&lt;P&gt;Just furthering adding to what Deepesh and Ali said - Create Hive views that would filter out rows and then use Ranger to grant that user access to that View (and not the underlying table). &lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 02:57:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95134#M8447</guid>
      <dc:creator>awatson</dc:creator>
      <dc:date>2015-10-09T02:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95135#M8448</link>
      <description>&lt;P&gt;Row-level security can be achieved by defining views with hard-coded permissions in Ranger. &lt;/P&gt;&lt;P&gt;An alternative available since Hive 1.2.0 is to filter dynamically based on the current user, with the &lt;EM&gt;current_user()&lt;/EM&gt; function. This provides row-by-row security. One option to define the ACLs is via a &lt;EM&gt;permission&lt;/EM&gt; table:&lt;/P&gt;&lt;PRE&gt;create table permission( username string, driverid string);&lt;/PRE&gt;&lt;P&gt;For example to secure the &lt;EM&gt;driver(driverid, drivername)&lt;/EM&gt; table, you could create the following permission:&lt;/P&gt;&lt;PRE&gt;insert into permission values( jsmith, 25 );&lt;/PRE&gt;&lt;P&gt;Finally define the view by joining against it:&lt;/P&gt;&lt;PRE&gt;create view secure_driver AS select d.* from driver d inner join permissions p on d.driverid=p.driverid where username = current_user(); &lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Oct 2015 05:32:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95135#M8448</guid>
      <dc:creator>jpp</dc:creator>
      <dc:date>2015-10-09T05:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95136#M8449</link>
      <description>&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/219/rmccollam.html"&gt;Ronald McCollam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hive view and if we look into other technology stacks then Row level security is based on views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2015 19:40:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95136#M8449</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-10T19:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95137#M8450</link>
      <description>&lt;P&gt;We would recommend customers to use Ranger with Hive, rather than SQL std authorization. The solution recommend by JP would work&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 02:31:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95137#M8450</guid>
      <dc:creator>bganesan</dc:creator>
      <dc:date>2015-11-03T02:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95138#M8451</link>
      <description>&lt;P&gt;Though views are not a scalable model, this would be the best recommended solution till the time we have support for inserting predicate or filtering row through UDF in Hive. &lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 02:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95138#M8451</guid>
      <dc:creator>bganesan</dc:creator>
      <dc:date>2015-11-03T02:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95139#M8452</link>
      <description>&lt;P&gt;&lt;EM&gt;I know... I'm the FIFTH person to say create a View and secure permissions on it, and the backing table, appropriately.&lt;/EM&gt;  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;  &lt;/P&gt;&lt;P&gt;That said, I've got a simple little demo posted at &lt;A href="https://github.com/HortonworksUniversity/Essentials/blob/master/demos/ranger/README.md" target="_blank"&gt;https://github.com/HortonworksUniversity/Essentials/blob/master/demos/ranger/README.md&lt;/A&gt; along with a video recording of it linked there in case anyone might find that useful.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 04:02:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95139#M8452</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2016-03-06T04:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to implement row-based security in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95140#M8453</link>
      <description>&lt;P&gt;Ranger now supports row filtering where you can specify a condition to filter the results by even without creating a new hive view.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_security/content/ranger_row_level_filtering_in_hive.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_security/content/ranger_row_level_filtering_in_hive.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 03:10:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-best-way-to-implement-row-based-security-in-Hive/m-p/95140#M8453</guid>
      <dc:creator>rabberbo</dc:creator>
      <dc:date>2016-11-23T03:10:23Z</dc:date>
    </item>
  </channel>
</rss>

