<?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: Failed to execute hive queries [ Access denied: Unable to move source to destination] in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65701#M76227</link>
    <description>&lt;P&gt;Thank you ,that works!!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 10:20:40 GMT</pubDate>
    <dc:creator>amankumar42</dc:creator>
    <dc:date>2018-03-23T10:20:40Z</dc:date>
    <item>
      <title>Failed to execute hive queries [ Access denied: Unable to move source to destination]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65658#M76225</link>
      <description>&lt;P&gt;I am trying to build pipeline using &lt;STRONG&gt;STREAMSETS&amp;nbsp;&lt;/STRONG&gt;which would be pushing records into HDFS and then hive Query will execute .&lt;/P&gt;&lt;P&gt;I running query load data inpath '/path/in/hdfc' into&amp;nbsp; table table_name .getting the exception..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Failed to execute queries. Details : Failed to execute query 'load data inpath &lt;BR /&gt;'/tmp/out/*' into table smsc_data_main_nw_success'. Reason: java.sql.SQLException:&lt;BR /&gt; Error while processing statement: FAILED: Execution Error,&lt;BR /&gt; return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask.&lt;BR /&gt; org.apache.hadoop.hive.ql.metadata.HiveException:&lt;BR /&gt; Access denied: Unable to move source hdfs://hostname:8020/tmp/out/file_name.done to&lt;BR /&gt; destination hdfs://hostname:8020/user/hive/warehouse/test.db/table_name:&lt;BR /&gt; Permission denied by sticky bit: user=anonymous, &lt;BR /&gt;path="/tmp/out/file_name.done":amank:supergroup:-rw-rw-r--, &lt;BR /&gt;parent="/tmp/out":amank:supergroup:drwxrwxrwt&lt;/PRE&gt;&lt;P&gt;I tried to these steps&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pln"&gt;hadoop fs &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;chmod g&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;w /user/hive/warehouse/test.db&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but still facing the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:00:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65658#M76225</guid>
      <dc:creator>amankumar42</dc:creator>
      <dc:date>2022-09-16T13:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to execute hive queries [ Access denied: Unable to move source to destination]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65660#M76226</link>
      <description>&amp;gt; user=anonymous&lt;BR /&gt;&lt;BR /&gt;It appears that your query connects without a proper username supplied. If&lt;BR /&gt;this is a HiveServer2 based connection, ensure you provide a username in&lt;BR /&gt;the connection string. This would be the simplest way to resolve your&lt;BR /&gt;issue, typically done by adding "user=username" as a property in the&lt;BR /&gt;connection string.&lt;BR /&gt;&lt;BR /&gt;If you absolutely do wish to use anonymous, then ensure that you use a non&lt;BR /&gt;/tmp path with 777 (but no sticky bit) access to the parent directory, so&lt;BR /&gt;that the user 'anonymous' is allowed to remove files from that directory.&lt;BR /&gt;This breaks down security, so is not advisable as a long term solution.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65660#M76226</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-03-22T07:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to execute hive queries [ Access denied: Unable to move source to destination]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65701#M76227</link>
      <description>&lt;P&gt;Thank you ,that works!!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 10:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-execute-hive-queries-Access-denied-Unable-to-move/m-p/65701#M76227</guid>
      <dc:creator>amankumar42</dc:creator>
      <dc:date>2018-03-23T10:20:40Z</dc:date>
    </item>
  </channel>
</rss>

