<?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: Getting Error : Spilling has been disabled due to no usable scratch space in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60120#M68201</link>
    <description>&lt;P&gt;The user that Impala is running under needs to be able to remove and recreate the scratch directory at startup (i.e. /tmp/impala-scratch). This is done to ensure that the directory is free of old files and that Impala has ownership of the directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the log message that user doesn't have the required permissions to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect if you just delete that directory and let Impala create it at startup, that will solve your problem.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 16:25:58 GMT</pubDate>
    <dc:creator>Tim Armstrong</dc:creator>
    <dc:date>2017-09-19T16:25:58Z</dc:date>
    <item>
      <title>Getting Error : Spilling has been disabled due to no usable scratch space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60039#M68198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using :&amp;nbsp;impalad version 2.7.0-cdh5.9.0 &amp;nbsp;and for few days my impala query is getting failed with the error :&lt;/P&gt;&lt;P&gt;java.sql.SQLException:&lt;/P&gt;&lt;P&gt;Spilling has been disabled due to no usable scratch space. Please specify a usable scratch space location via the --scratch_dirs impalad flag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the weired thing is that i have done all the possible &amp;nbsp;solutions as below, &amp;nbsp;but still why i am getting the error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. have created /tmp//tmp/impala-scratch directory on all the impalad nodes.&lt;/P&gt;&lt;P&gt;2. have created&amp;nbsp;/tmp/impala-scratch on hdfs also&lt;/P&gt;&lt;P&gt;3. have created a folder /data/impala-scratch and startimg impala-server like below :&lt;/P&gt;&lt;P&gt;./impala-server start --scratch_dirs="/data/impala-scratch"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and scratch folders have enough space and write permission. kindly help to resolve this problem , this problem is in PROD env.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:15:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60039#M68198</guid>
      <dc:creator>hrishi1dypim</dc:creator>
      <dc:date>2022-09-16T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error : Spilling has been disabled due to no usable scratch space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60082#M68199</link>
      <description>&lt;P&gt;The Impala daemon wasn't able to set up the scratch directories during startup. The reason will be logged in one of the impalad*.WARNING logs, probably one of the first messages in there.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 00:15:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60082#M68199</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-09-19T00:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error : Spilling has been disabled due to no usable scratch space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60090#M68200</link>
      <description>&lt;P&gt;I cant see any error related to scratch dir setup.i can see only :&lt;/P&gt;&lt;P&gt;Could not remove and recreate directory /tmp/impala-scratch: cannot use it for scratch. Error was: Encountered error removing directory '/tmp/impala-scratch': Operation not permitted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;looks there is no impact of provided path while starting. can you tell if my command is correct or do i need to use other command for that ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 07:48:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60090#M68200</guid>
      <dc:creator>hrishi1dypim</dc:creator>
      <dc:date>2017-09-19T07:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error : Spilling has been disabled due to no usable scratch space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60120#M68201</link>
      <description>&lt;P&gt;The user that Impala is running under needs to be able to remove and recreate the scratch directory at startup (i.e. /tmp/impala-scratch). This is done to ensure that the directory is free of old files and that Impala has ownership of the directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the log message that user doesn't have the required permissions to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect if you just delete that directory and let Impala create it at startup, that will solve your problem.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:25:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60120#M68201</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-09-19T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error : Spilling has been disabled due to no usable scratch space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60137#M68202</link>
      <description>&lt;P&gt;my point is why impala is not trying to use the directory which i am providing like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;./impala-server start --scratch_dirs="/data/impala-scratch"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;why its still expecting /tmp/impala-scratch" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to resolve it ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 06:41:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60137#M68202</guid>
      <dc:creator>hrishi1dypim</dc:creator>
      <dc:date>2017-09-20T06:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error : Spilling has been disabled due to no usable scratch space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60143#M68203</link>
      <description>&lt;P&gt;If you're&amp;nbsp;starting Impala from the command line like that&amp;nbsp;you can configure &amp;nbsp;flags and environment variables with the&amp;nbsp;&lt;SPAN&gt;/etc/default/impala - &amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/impala_processes.html#starting_via_cmdline" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/impala_processes.html#starting_via_cmdline&lt;/A&gt; . &amp;nbsp;The relevant variable in that file is&amp;nbsp;IMPALA_SERVER_ARGS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(If anyone else reads this, if you're using Cloudera Manager you can configure the scratch directories through the UI. You probably won't have to since CM&amp;nbsp;does a pretty good job of autoconfiguring scratch directories).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:19:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-Error-Spilling-has-been-disabled-due-to-no-usable/m-p/60143#M68203</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-09-20T07:19:02Z</dc:date>
    </item>
  </channel>
</rss>

