<?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 hive privileges on table vs database. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156278#M53156</link>
    <description>&lt;P&gt;Whats the difference between granting privileges on tables and granting privileges on a databases.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;By granting below privileges on a table for a user, the user would be able to insert, update etc on a table.&lt;/P&gt;&lt;P&gt;grant insert,update,delete,select on table test01 to user user1;&lt;/P&gt;&lt;P&gt;Now, what would be the use of granting below insert, delete etc privileges on a database for a user ?. As in a database, we can only create and delete tables but we can't insert/update in databases. &lt;/P&gt;&lt;P&gt;grant insert,update,delete,select on database db1 to user user1;&lt;/P&gt;&lt;P&gt;And, does  by granting insert, delete etc privileges on a database for a user, will the user be getting those privileges on all the objects in that database ?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 00:11:20 GMT</pubDate>
    <dc:creator>rakesh_nix08</dc:creator>
    <dc:date>2017-02-02T00:11:20Z</dc:date>
    <item>
      <title>hive privileges on table vs database.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156278#M53156</link>
      <description>&lt;P&gt;Whats the difference between granting privileges on tables and granting privileges on a databases.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;By granting below privileges on a table for a user, the user would be able to insert, update etc on a table.&lt;/P&gt;&lt;P&gt;grant insert,update,delete,select on table test01 to user user1;&lt;/P&gt;&lt;P&gt;Now, what would be the use of granting below insert, delete etc privileges on a database for a user ?. As in a database, we can only create and delete tables but we can't insert/update in databases. &lt;/P&gt;&lt;P&gt;grant insert,update,delete,select on database db1 to user user1;&lt;/P&gt;&lt;P&gt;And, does  by granting insert, delete etc privileges on a database for a user, will the user be getting those privileges on all the objects in that database ?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 00:11:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156278#M53156</guid>
      <dc:creator>rakesh_nix08</dc:creator>
      <dc:date>2017-02-02T00:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: hive privileges on table vs database.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156279#M53157</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15686/rakeshnix08.html" nodeid="15686"&gt;@rakesh kumar&lt;/A&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;if you are an admin, you need to have full access on data base and tables as well to create,drop,update,alter tables. Even if you want to drop DB you should able to do it.&lt;/P&gt;&lt;P&gt;if you are a developer, you will get limited access to do only your work at tables level.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 00:38:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156279#M53157</guid>
      <dc:creator>divakarreddy_a</dc:creator>
      <dc:date>2017-02-02T00:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: hive privileges on table vs database.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156280#M53158</link>
      <description>&lt;P&gt;@rakesh kumar&lt;/P&gt;&lt;P&gt;You can enforce authorization at any level in hive using Apache Ranger&lt;/P&gt;&lt;P&gt;Please have a look&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/overview_ranger_ambari_install.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/overview_ranger_ambari_install.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 01:10:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156280#M53158</guid>
      <dc:creator>icocio</dc:creator>
      <dc:date>2017-02-02T01:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: hive privileges on table vs database.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156281#M53159</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/15686/rakeshnix08.html"&gt;@rakesh kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Granting insert,update,delete,select on table x to user1 is more granular level security there are usually many application users with different levels of privileges accessing the same table x in a database. I could run &lt;/P&gt;&lt;PRE&gt;grant select on table x to user2 ;&lt;/PRE&gt;&lt;P&gt;this user will only have as the statements say ONLY select on table&lt;STRONG&gt;x&lt;/STRONG&gt;, Whereas the &lt;/P&gt;&lt;PRE&gt;grant insert,update,delete,select on database db1 to user user1; &lt;/PRE&gt;&lt;P&gt;Gives user1 the precedent privileges to all tables in database db1. &lt;/P&gt;&lt;P&gt;To limit select ONLY to user2 I would run the below &lt;/P&gt;&lt;PRE&gt;grant select on database db1 to user user2; &lt;/PRE&gt;&lt;P&gt; Having said that database management is easier using roles otherwise management of user privileges can become a headache.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 01:16:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156281#M53159</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-02-02T01:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: hive privileges on table vs database.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156282#M53160</link>
      <description>&lt;P&gt;granting insert/delete privileges on a database for a User will let the User have similar privilege on all tables under the database. User can perform DML and DDL actions in that database.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 09:23:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-privileges-on-table-vs-database/m-p/156282#M53160</guid>
      <dc:creator>sreeviswa_athic</dc:creator>
      <dc:date>2017-02-22T09:23:01Z</dc:date>
    </item>
  </channel>
</rss>

