<?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: Is it possible to enable column level security at Hive View level? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131015#M93699</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1895-screen-shot-2016-02-08-at-113125-am.png" style="width: 2102px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22322i1CD939A0C4F28FD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1895-screen-shot-2016-02-08-at-113125-am.png" alt="1895-screen-shot-2016-02-08-at-113125-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; select * from onion_referrers;&lt;/P&gt;&lt;P&gt;INFO  : Session is already open&lt;/P&gt;&lt;P&gt;INFO  : &lt;/P&gt;&lt;P&gt;INFO  : Status: Running (Executing on YARN cluster with App id application_1454947053064_0004)&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 0/1&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 0(+1)/1&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 1/1&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;| onion_referrers.url  |&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;No rows selected (4.381 seconds)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; &lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 09:26:51 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2019-08-19T09:26:51Z</dc:date>
    <item>
      <title>Is it possible to enable column level security at Hive View level?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131014#M93698</link>
      <description>&lt;P&gt;HDP 2.3.2&lt;/P&gt;&lt;P&gt;Sandbox&lt;/P&gt;&lt;P&gt;hive&amp;gt; CREATE TABLE page_view(viewTime INT, userid BIGINT,&lt;/P&gt;&lt;P&gt;    &amp;gt;      page_url STRING, referrer_url STRING,&lt;/P&gt;&lt;P&gt;    &amp;gt;      ip STRING COMMENT 'IP Address of the User')&lt;/P&gt;&lt;P&gt;    &amp;gt;  COMMENT 'This is the page view table'&lt;/P&gt;&lt;P&gt;    &amp;gt;  PARTITIONED BY(dt STRING, country STRING)&lt;/P&gt;&lt;P&gt;    &amp;gt;  STORED AS SEQUENCEFILE;&lt;/P&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;Time taken: 14.39 seconds&lt;/P&gt;&lt;P&gt;hive&amp;gt; CREATE VIEW onion_referrers(url COMMENT 'URL of Referring page')&lt;/P&gt;&lt;P&gt;    &amp;gt;   COMMENT 'Referrers to The Onion website'&lt;/P&gt;&lt;P&gt;    &amp;gt;   AS&lt;/P&gt;&lt;P&gt;    &amp;gt;   SELECT DISTINCT referrer_url&lt;/P&gt;&lt;P&gt;    &amp;gt;   FROM page_view&lt;/P&gt;&lt;P&gt;    &amp;gt;   WHERE page_url='&lt;A href="http://www.theonion.com" target="_blank"&gt;http://www.theonion.com&lt;/A&gt;';&lt;/P&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;Time taken: 3.484 seconds&lt;/P&gt;&lt;P&gt;Ranger policy&lt;/P&gt;&lt;P&gt;Restricting access on ip column - Table &lt;/P&gt;&lt;P&gt;Restricting access on url column - View&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1893-screen-shot-2016-02-08-at-111838-am.png" style="width: 2554px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22323i612958CA6093659B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1893-screen-shot-2016-02-08-at-111838-am.png" alt="1893-screen-shot-2016-02-08-at-111838-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; select * from page_view;&lt;/P&gt;&lt;P&gt;Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [hive] does not have [SELECT] privilege on [default/page_view/country,dt,ip,page_url,referrer_url,userid,viewtime] (state=42000,code=40000)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; select * from onion_referrers;&lt;/P&gt;&lt;P&gt;INFO  : Session is already open&lt;/P&gt;&lt;P&gt;INFO  : &lt;/P&gt;&lt;P&gt;INFO  : Status: Running (Executing on YARN cluster with App id application_1454947053064_0004)&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 0/1&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 0(+1)/1&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 1/1&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;| onion_referrers.url  |&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;No rows selected (3.695 seconds)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229" target="_blank"&gt;@bdurai&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/304/sneethiraj.html" nodeid="304" target="_blank"&gt;@sneethiraj&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/306/bganesan.html" nodeid="306" target="_blank"&gt;@bganesan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;****Update****&lt;/P&gt;&lt;P&gt;I added base table column in exclude list and view can access the column&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:26:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131014#M93698</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2019-08-19T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to enable column level security at Hive View level?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131015#M93699</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1895-screen-shot-2016-02-08-at-113125-am.png" style="width: 2102px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22322i1CD939A0C4F28FD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1895-screen-shot-2016-02-08-at-113125-am.png" alt="1895-screen-shot-2016-02-08-at-113125-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; select * from onion_referrers;&lt;/P&gt;&lt;P&gt;INFO  : Session is already open&lt;/P&gt;&lt;P&gt;INFO  : &lt;/P&gt;&lt;P&gt;INFO  : Status: Running (Executing on YARN cluster with App id application_1454947053064_0004)&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 0/1&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 0(+1)/1&lt;/P&gt;&lt;P&gt;INFO  : Map 1: -/-Reducer 2: 1/1&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;| onion_referrers.url  |&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;+----------------------+--+&lt;/P&gt;&lt;P&gt;No rows selected (4.381 seconds)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://localhost:10000&amp;gt; &lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:26:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131015#M93699</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2019-08-19T09:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to enable column level security at Hive View level?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131016#M93700</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;, your view is using referrer_url and page_url from the page_view table which have no access permissions. Not sure is this the reason you get no output from your view. Can you start by setting Hive columns to "*" and then trying to reduce permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:16:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131016#M93700</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-02-11T17:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to enable column level security at Hive View level?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131017#M93701</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; I checked with the security team and it's known issue. &lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131017#M93701</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-11T18:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to enable column level security at Hive View level?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131018#M93702</link>
      <description>&lt;P&gt;There will be a new feature eventually to take care of this. "Being able to control access to view columns, without having to grant access to the underlying table column(s), might be a desired security feature."&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:18:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-enable-column-level-security-at-Hive-View/m-p/131018#M93702</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-11T18:18:19Z</dc:date>
    </item>
  </channel>
</rss>

