<?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: How to create external table without serveradmin rights? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/44046#M27575</link>
    <description>&lt;P&gt;Yes, you are right, there has to be a explicit grant on that URI, not just a HDFS access to the given directory.&lt;/P&gt;&lt;P&gt;I don't understand why the documentation do not explain it more clearly..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2016 08:13:11 GMT</pubDate>
    <dc:creator>Tomas79</dc:creator>
    <dc:date>2016-08-17T08:13:11Z</dc:date>
    <item>
      <title>How to create external table without serveradmin rights?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/40572#M27573</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;is it a bug, or a desired feature that the create external table (or change location of external table) is allowed only for serveradmin roles?&lt;/P&gt;&lt;P&gt;Based on the documentation the database ALL permission should be sufficient, but there is a statement that also the URI should be accessible.&lt;/P&gt;&lt;P&gt;However when I change my test user permission and remove serveradmin, he cannot create an external table pointing to his home directory such like this:&lt;/P&gt;&lt;P&gt;create table part ( i int, s string ) stored as textfile location '/user/testuser/part';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: AuthorizationException: User 'testuser@MYREALM.LOCAL' does not have privileges to access: hdfs://hdfscluster/user/testuser/part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After enabling the serveradmin right for testuser the command executes correctly and the table is created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints on this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:17:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/40572#M27573</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2022-09-16T10:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create external table without serveradmin rights?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/44045#M27574</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think sentry check if your user have specific permission on the "LOCATION" URI you have provided (and this is not related to HDFS ACL).&lt;/P&gt;&lt;P&gt;Try to grant, in sentry, that permission too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;PRE&gt;GRANT ALL ON URI 'hdfs://hdfscluster/user/testuser/part' TO ROLE &amp;lt;a_role&amp;gt;;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;mathieu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:28:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/44045#M27574</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-08-17T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create external table without serveradmin rights?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/44046#M27575</link>
      <description>&lt;P&gt;Yes, you are right, there has to be a explicit grant on that URI, not just a HDFS access to the given directory.&lt;/P&gt;&lt;P&gt;I don't understand why the documentation do not explain it more clearly..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 08:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-external-table-without-serveradmin-rights/m-p/44046#M27575</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2016-08-17T08:13:11Z</dc:date>
    </item>
  </channel>
</rss>

