<?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 Impala SQL: Unable to LOAD DATA from HDFS path due to WRITE permissions in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51898#M56537</link>
    <description>&lt;DIV&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Impala Official docker image "cloudera/quickstart".&lt;BR /&gt;I can upload a TEXT-formatted file to a HDFS location. However, when I executed LOAD DATA command to do data migration, I received following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;[Simba]ImpalaJDBCDriver ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Unable to LOAD DATA from hdfs://quickstart.cloudera:8020/user/customer.tbl.1 because Impala does not have WRITE permissions on its parent directory hdfs://quickstart.cloudera:8020/user ), Query: load data inpath '/user/customer.tbl.1' overwrite into table my_table. [SQL State=HY000, DB Errorcode=500051]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My sql is :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;load data inpath '/user/customer.tbl.1' overwrite into table my_table&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there anyone know what is going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:12:52 GMT</pubDate>
    <dc:creator>yexianyi</dc:creator>
    <dc:date>2022-09-16T11:12:52Z</dc:date>
    <item>
      <title>Impala SQL: Unable to LOAD DATA from HDFS path due to WRITE permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51898#M56537</link>
      <description>&lt;DIV&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Impala Official docker image "cloudera/quickstart".&lt;BR /&gt;I can upload a TEXT-formatted file to a HDFS location. However, when I executed LOAD DATA command to do data migration, I received following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;[Simba]ImpalaJDBCDriver ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Unable to LOAD DATA from hdfs://quickstart.cloudera:8020/user/customer.tbl.1 because Impala does not have WRITE permissions on its parent directory hdfs://quickstart.cloudera:8020/user ), Query: load data inpath '/user/customer.tbl.1' overwrite into table my_table. [SQL State=HY000, DB Errorcode=500051]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My sql is :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;load data inpath '/user/customer.tbl.1' overwrite into table my_table&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there anyone know what is going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:12:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51898#M56537</guid>
      <dc:creator>yexianyi</dc:creator>
      <dc:date>2022-09-16T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Impala SQL: Unable to LOAD DATA from HDFS path due to WRITE permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51912#M56538</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21070"&gt;@yexianyi&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual answer for your question is you need to change the owner/group of /user/customer.tbl.1 accessible by hive/impala&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to that, the default cloudera recommended path to maintain hive/impala table is "/user/hive/warehouse/"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in your case, create a DB called customer in the default path as follows and make sure owner/group accessible by hive/impala and try again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -ls /user/hive/warehouse/customer.db&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -ls /user/hive/warehouse&lt;/P&gt;&lt;P&gt;drwxrwxrwt &amp;nbsp;&amp;nbsp;- hive&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hive&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 2016-11-25 15:11 /user/hive/warehouse/customer.db&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:55:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51912#M56538</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-03-08T14:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Impala SQL: Unable to LOAD DATA from HDFS path due to WRITE permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51943#M56539</link>
      <description>Thank u so much!! It's working now.</description>
      <pubDate>Thu, 09 Mar 2017 03:31:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/51943#M56539</guid>
      <dc:creator>yexianyi</dc:creator>
      <dc:date>2017-03-09T03:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Impala SQL: Unable to LOAD DATA from HDFS path due to WRITE permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/66208#M56540</link>
      <description>&lt;P&gt;Is there a way to change hdfs permissions when importing files via sqoop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/49759591/sqoop-how-to-change-hdfs-permissions-on-imported-files" target="_self"&gt;https://stackoverflow.com/questions/49759591/sqoop-how-to-change-hdfs-permissions-on-imported-files&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:25:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-SQL-Unable-to-LOAD-DATA-from-HDFS-path-due-to-WRITE/m-p/66208#M56540</guid>
      <dc:creator>diogobaltazar</dc:creator>
      <dc:date>2018-04-10T17:25:09Z</dc:date>
    </item>
  </channel>
</rss>

