<?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 How to give access to users to create and own databases in CDP 7.1.7 Hive. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/349690#M235737</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;We are having four nodes CDP 7.1.7 SP1 cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently , when a normal hive user creates a database, the database ownership is getting assigned to hive:supergroup&amp;nbsp; in /external/hive which is default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We want the /external/hive database ownership to be assigned to the user who is creating a database.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;User "Test " is creates one database, the ownership should be like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drwxr-xr-x - test supergroup 0 2022-07-05 17:35 /warehouse/tablespace/exteranl/hive/test_db&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let us know if this is possible.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 07:28:56 GMT</pubDate>
    <dc:creator>ssuja</dc:creator>
    <dc:date>2022-08-08T07:28:56Z</dc:date>
    <item>
      <title>How to give access to users to create and own databases in CDP 7.1.7 Hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/349690#M235737</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;We are having four nodes CDP 7.1.7 SP1 cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently , when a normal hive user creates a database, the database ownership is getting assigned to hive:supergroup&amp;nbsp; in /external/hive which is default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We want the /external/hive database ownership to be assigned to the user who is creating a database.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;User "Test " is creates one database, the ownership should be like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drwxr-xr-x - test supergroup 0 2022-07-05 17:35 /warehouse/tablespace/exteranl/hive/test_db&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let us know if this is possible.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 07:28:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/349690#M235737</guid>
      <dc:creator>ssuja</dc:creator>
      <dc:date>2022-08-08T07:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to give access to users to create and own databases in CDP 7.1.7 Hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/349922#M235820</link>
      <description>&lt;P&gt;Hi , could you please help on this??!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 03:41:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/349922#M235820</guid>
      <dc:creator>ssuja</dc:creator>
      <dc:date>2022-08-11T03:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to give access to users to create and own databases in CDP 7.1.7 Hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350044#M235857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98569"&gt;@ssuja&lt;/a&gt;&amp;nbsp;there is a Hive property that would help you achieve what you are aiming for. Look for&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;hive.server2.enable.doAs&lt;/STRONG&gt; under Hive on Tez configurations and enable it. However, there is a catch. This property needs to be disabled if you are using Ranger for authorization. If you are not using Ranger, and using Storage Based Authorization(which is not the recommended in CDP), then you could definitely enable this. Refer to the doc &lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/securing-hive/topics/hive_sba_permissions_model.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 18:27:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350044#M235857</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2022-08-12T18:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to give access to users to create and own databases in CDP 7.1.7 Hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350137#M235892</link>
      <description>&lt;P&gt;Hi Smruti,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are we able to achieve this :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"We want the /external/hive database ownership to be assigned to the user who is creating a database "&amp;nbsp;&lt;/STRONG&gt;by creating any custom policies in Ranger ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:11:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350137#M235892</guid>
      <dc:creator>ssuja</dc:creator>
      <dc:date>2022-08-16T06:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to give access to users to create and own databases in CDP 7.1.7 Hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350299#M235949</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98569"&gt;@ssuja&lt;/a&gt;&amp;nbsp;I am afraid it's not achievable using Ranger. If you already have a data directory owned by a specific user, say &lt;STRONG&gt;user1&lt;/STRONG&gt;, you may create a policy in Ranger providing &lt;STRONG&gt;hive&lt;/STRONG&gt; and other users access to that directory path(URI), and keep the physical path owned by &lt;STRONG&gt;user1&lt;/STRONG&gt; itself. See, if this is something you can work with. I should also mention, creating an external Hive table without Location clause, will create a directory with &lt;STRONG&gt;hive&lt;/STRONG&gt; ownership, for Impersonation is disabled in Hive.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:56:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350299#M235949</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2022-08-18T13:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to give access to users to create and own databases in CDP 7.1.7 Hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350707#M236060</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98569"&gt;@ssuja&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 12:10:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-give-access-to-users-to-create-and-own-databases-in/m-p/350707#M236060</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-08-24T12:10:50Z</dc:date>
    </item>
  </channel>
</rss>

