<?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: impala sql failed with errno=2 description=Error(2): No such file or directory in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23293#M4407</link>
    <description>&lt;P&gt;When one or more parent directories in the path are missing, file creation will fail with err=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;# ls -ld /tmp/impala-scratch&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ls: cannot access /tmp/impala-scratch: No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;# touch /tmp/impala-scratch/test&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;touch: cannot touch `/tmp/impala-scratch/test': No such file or directory&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next time this error occurs, check for the presence of /tmp/impala-scratch before restarting the service. Also, check the HDFS Audit logs to identify which user might be deleting the directory.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2015 08:40:41 GMT</pubDate>
    <dc:creator>GautamG</dc:creator>
    <dc:date>2015-01-05T08:40:41Z</dc:date>
    <item>
      <title>impala sql failed with errno=2 description=Error(2): No such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23292#M4406</link>
      <description>&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;cdh5.2.0 ,impala 2.0.&lt;/P&gt;&lt;P&gt;Every hour I will pull data from hive to impala(parquet file).Sometimes,can not excute sql like below，and&amp;nbsp;restart the impala cluster could&amp;nbsp;solve the problem,why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;select id,sub1,(ifnull(sum(click),0)) as clicks &amp;gt; from new_td_impala_test
where (part1&amp;gt;='2014-11-06' and part1&amp;lt;='2014-11-06') and (unix_timestamp(substr(time_stamp,1,19)) &amp;gt;= unix_timestamp('2014-10-31 16:00:00') and unix_timestamp(substr(time_stamp,1,19)) &amp;lt; unix_timestamp('2014-11-07 16:00:00')) group by id,sub1 limit 4 ;
Query: select id,sub1,(ifnull(sum(click),0)) as clicks
from new_td_impala_test
where (part1&amp;gt;='2014-11-06' and part1&amp;lt;='2014-11-06') and (unix_timestamp(substr(time_stamp,1,19)) &amp;gt;= unix_timestamp('2014-10-31 16:00:00') and unix_timestamp(substr(time_stamp,1,19)) &amp;lt; unix_timestamp('2014-11-07 16:00:00')) group by id,sub1 limit 4
WARNINGS: Create file /tmp/impala-scratch/7241111ac15574e0:abef55f7a589b3a5_7241111ac15574e0:abef55f7a589b3a7_dc8fc8e3-f98c-41e8-a86a-d9c8f7840cdb failed with errno=2 description=Error(2): No such file or directory

Backend 1:Create file /tmp/impala-scratch/7241111ac15574e0:abef55f7a589b3a5_7241111ac15574e0:abef55f7a589b3a7_dc8fc8e3-f98c-41e8-a86a-d9c8f7840cdb failed with errno=2 description=Error(2): No such file or directory&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:17:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23292#M4406</guid>
      <dc:creator>rube</dc:creator>
      <dc:date>2022-09-16T09:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: impala sql failed with errno=2 description=Error(2): No such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23293#M4407</link>
      <description>&lt;P&gt;When one or more parent directories in the path are missing, file creation will fail with err=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;# ls -ld /tmp/impala-scratch&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ls: cannot access /tmp/impala-scratch: No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;# touch /tmp/impala-scratch/test&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;touch: cannot touch `/tmp/impala-scratch/test': No such file or directory&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next time this error occurs, check for the presence of /tmp/impala-scratch before restarting the service. Also, check the HDFS Audit logs to identify which user might be deleting the directory.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 08:40:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23293#M4407</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-01-05T08:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: impala sql failed with errno=2 description=Error(2): No such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23296#M4408</link>
      <description>Another alternative is to change your scratch_dirs to be outside of /tmp. That way it might be safe from any job that cleans out /tmp</description>
      <pubDate>Mon, 05 Jan 2015 11:21:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/23296#M4408</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-01-05T11:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: impala sql failed with errno=2 description=Error(2): No such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/29091#M4409</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Do you know, what are the steps we have to follow to make this change?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I kept on reading the page but didn't find that helpfull.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/impala_disk_space.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/impala_disk_space.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 19:31:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/29091#M4409</guid>
      <dc:creator>Bike the Rain</dc:creator>
      <dc:date>2015-06-29T19:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: impala sql failed with errno=2 description=Error(2): No such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/29129#M4410</link>
      <description>&lt;P&gt;I have options to add another directory but I don't know if that will skip default setting or still I will need to change default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:19:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/impala-sql-failed-with-errno-2-description-Error-2-No-such/m-p/29129#M4410</guid>
      <dc:creator>Bike the Rain</dc:creator>
      <dc:date>2015-06-30T16:19:28Z</dc:date>
    </item>
  </channel>
</rss>

