<?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: Hive CREATE VIEW fails due to no SELECT access on object. But I can SELECT * on the object... in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140075#M48072</link>
    <description>&lt;P&gt;I take it from this that there is a difference between Table level selection and All column level selection. Perhaps that acts a little bit like an "SELECT ... WITH GRANT" on the object (Teradata SQL).&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2016 08:44:58 GMT</pubDate>
    <dc:creator>rupert</dc:creator>
    <dc:date>2016-12-07T08:44:58Z</dc:date>
    <item>
      <title>Hive CREATE VIEW fails due to no SELECT access on object. But I can SELECT * on the object...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140072#M48069</link>
      <description>&lt;P&gt;I have been validating the Ranger options. I have select on all columns of a hive table:&lt;/P&gt;&lt;PRE&gt;SELECT ssn, name, location FROM employee;&lt;/PRE&gt;&lt;P&gt;works, however the following does not:&lt;/P&gt;&lt;PRE&gt;CREATE VIEW employee_v AS SELECT ssn, name, location FROM employee;&lt;/PRE&gt;&lt;P&gt;fails due to not having SELECT on "employee". So confused... thoughts?&lt;/P&gt;&lt;PRE&gt;org.apache.hive.service.cli.HiveSQLException: Error while compiling 
statement: FAILED: HiveAccessControlException Permission denied: user 
[raj_ops] does not have [SELECT] privilege on [default/employee]&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2016 19:12:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140072#M48069</guid>
      <dc:creator>rupert</dc:creator>
      <dc:date>2016-12-06T19:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CREATE VIEW fails due to no SELECT access on object. But I can SELECT * on the object...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140073#M48070</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14679/rupert.html"&gt;Rupert Bailey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you given the grant permission to the user "raj_ops" ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_Ranger_User_Guide/content/user_access_hive_db_tables_cmd_line.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_Ranger_User_Guide/content/user_access_hive_db_tables_cmd_line.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;GRANT
======
Syntax: grant &amp;lt;permissions&amp;gt; on table &amp;lt;table&amp;gt; to user &amp;lt;user or group&amp;gt;;

For example, to create a policy that grants user1 SELECT permission on the table default-hivesmoke22074, the command is grant select on table default.hivesmoke22074 to user user1;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2016 19:23:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140073#M48070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-06T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CREATE VIEW fails due to no SELECT access on object. But I can SELECT * on the object...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140074#M48071</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3823/joysensharma.html" nodeid="3823"&gt;@jss&lt;/A&gt; thankyou for the tip. I was indeed required to execute an SQL DSL to GRANT SELECT on the employee TABLE. I was then required to GRANT CREATE on default DATABASE to USER.  Which obeys ANSI I guess, but it seems adding the resource level privilege by Ranger is not sufficient (and I expect not with Atlas either with a tag). Interestingly from a SQL perspective even though the user creates the view, he needs to be explicitly provided GRANT SELECT on the object they create, which you don't need to do in Teradata SQL.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 19:48:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140074#M48071</guid>
      <dc:creator>rupert</dc:creator>
      <dc:date>2016-12-06T19:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CREATE VIEW fails due to no SELECT access on object. But I can SELECT * on the object...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140075#M48072</link>
      <description>&lt;P&gt;I take it from this that there is a difference between Table level selection and All column level selection. Perhaps that acts a little bit like an "SELECT ... WITH GRANT" on the object (Teradata SQL).&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:44:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CREATE-VIEW-fails-due-to-no-SELECT-access-on-object-But/m-p/140075#M48072</guid>
      <dc:creator>rupert</dc:creator>
      <dc:date>2016-12-07T08:44:58Z</dc:date>
    </item>
  </channel>
</rss>

