<?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: External Table creation error/ permission denied in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160403#M36623</link>
    <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2754/techguy9912.html" nodeid="2754"&gt;@Tech Guy&lt;/A&gt; Please take a look at this &lt;A href="https://community.cloudera.com/t5/CDH-Manual-Installation/Permission-denied-user-root-access-WRITE-inode-quot-user-quot/td-p/4943"&gt;post&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;You are getting a "permission denied"-error because you are trying to access a folder using "root" user that is owned by the &lt;EM&gt;hdfs-user &lt;/EM&gt;and the permissions do not allow write access from others.  Change owners of / to root.  &lt;/P&gt;&lt;P&gt;sudo su - hdfs then&lt;/P&gt;&lt;P&gt;hdfs dfs -chown -R root /&lt;/P&gt;&lt;P&gt;Or if you don't want to change the permissions, launch hive using hdfs use&lt;/P&gt;&lt;P&gt;sudo su - hdfs&lt;/P&gt;&lt;P&gt;then run hive. no more permission issue.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 04:16:39 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-08-02T04:16:39Z</dc:date>
    <item>
      <title>External Table creation error/ permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160401#M36621</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am getting permission issue while creating external table. I logged in as root.&lt;/P&gt;&lt;P&gt;hive&amp;gt; create external table users (
    &amp;gt;      user_id INT,
    &amp;gt;      age INT,
    &amp;gt;      gender STRING,
    &amp;gt;      occupation STRING,
    &amp;gt;      zip_code STRING
    &amp;gt;      )
    &amp;gt;      ROW FORMAT DELIMITED
    &amp;gt;      FIELDS TERMINATED BY '|'
    &amp;gt;      STORED AS TEXTFILE
    &amp;gt;    LOCATION '/myid/userinfo';
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:java.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/":hdfs:hdfs:drwxr-xr-x&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:32:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160401#M36621</guid>
      <dc:creator>TechGuy</dc:creator>
      <dc:date>2022-09-16T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: External Table creation error/ permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160402#M36622</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2754/techguy9912.html"&gt;Tech Guy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One option is to try first to sudo as hive (or any user that had hdfs privileges) and then launch hive and execute your DDL statement&lt;/P&gt;&lt;PRE&gt;$sudo su hive

$hive&lt;/PRE&gt;&lt;P&gt;... then your DDL.&lt;/P&gt;&lt;P&gt;The reason is that you still need some hdfs write privileges for hive metadata. &lt;/P&gt;&lt;P&gt;If the response addresses your problem, vote/accept as the best answer.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:15:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160402#M36622</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-08-02T04:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: External Table creation error/ permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160403#M36623</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2754/techguy9912.html" nodeid="2754"&gt;@Tech Guy&lt;/A&gt; Please take a look at this &lt;A href="https://community.cloudera.com/t5/CDH-Manual-Installation/Permission-denied-user-root-access-WRITE-inode-quot-user-quot/td-p/4943"&gt;post&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;You are getting a "permission denied"-error because you are trying to access a folder using "root" user that is owned by the &lt;EM&gt;hdfs-user &lt;/EM&gt;and the permissions do not allow write access from others.  Change owners of / to root.  &lt;/P&gt;&lt;P&gt;sudo su - hdfs then&lt;/P&gt;&lt;P&gt;hdfs dfs -chown -R root /&lt;/P&gt;&lt;P&gt;Or if you don't want to change the permissions, launch hive using hdfs use&lt;/P&gt;&lt;P&gt;sudo su - hdfs&lt;/P&gt;&lt;P&gt;then run hive. no more permission issue.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:16:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160403#M36623</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-08-02T04:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: External Table creation error/ permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160404#M36624</link>
      <description>&lt;P&gt;Why does it require write permissions to create an external table? If we have huge read-only data which we want the various users to query without duplicating, what should we do?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 23:25:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-creation-error-permission-denied/m-p/160404#M36624</guid>
      <dc:creator>sandeep1</dc:creator>
      <dc:date>2019-08-03T23:25:24Z</dc:date>
    </item>
  </channel>
</rss>

