<?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>topic Re: No space left on device and IllegalStateException: Have already allocated a maximum of 8192 page in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/no-space-left-on-device-and-illegalstateexception-have-already/m-p/58893#M6439</link>
    <description>&lt;P&gt;are processing Parquet files or what is the format of your tables?&amp;nbsp;&lt;BR /&gt;can you split your sql query instead of having a huge query with 1700 lines&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 19:38:21 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2024-01-31T19:38:21Z</dc:date>
    <item>
      <title>No space left on device and IllegalStateException: Have already allocated a maximum of 8192 pages</title>
      <link>https://community.databricks.com/t5/get-started-discussions/no-space-left-on-device-and-illegalstateexception-have-already/m-p/58381#M6437</link>
      <description>&lt;P class=""&gt;Hello, I'm writing to bring to your attention an issue that we have encountered while working with Data bricks and seek your assistance in resolving it.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Context of the Error :&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;When a sql query(1700 lines) is ran, corresponding data bricks job is failing for&amp;nbsp;&lt;FONT color="#FF0000"&gt;No space left on device&lt;/FONT&gt; and upgrading the&amp;nbsp;cluster configuration to higher versions and added required spark configurations still which errored out for&amp;nbsp;&lt;FONT color="#FF0000"&gt;IllegalStateException: Have already allocated a maximum of 8192 pages.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;Initially runs were completing with configuration as mentioned :&amp;nbsp;&amp;nbsp;Driver: m5.4xlarge · Workers: m5.4xlarge · 20-50 workers&amp;nbsp;and spark configurations as&amp;nbsp;&lt;STRONG&gt;spark.driver.maxResultSize 8g andspark.sql.autoBroadcastJoinThreshold -1 &lt;/STRONG&gt;and now this is failing with&amp;nbsp;&lt;FONT color="#FF0000"&gt;Caused by: java.io.IOException: No space left on device.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR Uncaught throwable from user code: org.apache.spark.SparkException: Job aborted due to stage failure: ShuffleMapStage 149 (count at DuplicatesFinder.scala:23) has failed the maximum allowable number of times: 4. Most recent failure reason:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;org.apache.spark.shuffle.FetchFailedException.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Based on this error, checked the stages and dag and observed a failed stage for collecting samples for range partitioning in count at DuplicatesFinder.scala consumes most of driver memory to shuffle read &amp;amp; shuffle write.&lt;BR /&gt;&lt;BR /&gt;Have tried upgrading to higher cluster resources with relevant spark configurations&amp;nbsp;scaling each time as :&amp;nbsp;&lt;BR /&gt;spark.sql.shuffle.partitions ( auto, 100, 300, 400 till 4000)&lt;BR /&gt;spark.driver.maxResultSize (16g)&lt;BR /&gt;spark.default.parallelism 4000&lt;BR /&gt;spark.driver.memory 16g&lt;BR /&gt;spark.executor.memory 6g&lt;/P&gt;&lt;P class=""&gt;enable-cache: false&lt;BR /&gt;view-partitions: 8000&lt;/P&gt;&lt;P class=""&gt;and now it errors out&amp;nbsp;&lt;STRONG&gt;IllegalStateException: Have already allocated a maximum of 8192 pages.&lt;BR /&gt;&lt;BR /&gt;Kindly let us know what points can considered w.r.t this issue.&lt;BR /&gt;Any suggestions to resolve this issue will be much helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks for your time and assistance. Appreciate it.&lt;/P&gt;&lt;P class=""&gt;Best regards,&lt;/P&gt;&lt;P class=""&gt;Sai Charan&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 04:16:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/no-space-left-on-device-and-illegalstateexception-have-already/m-p/58381#M6437</guid>
      <dc:creator>SaiCharan</dc:creator>
      <dc:date>2024-01-25T04:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: No space left on device and IllegalStateException: Have already allocated a maximum of 8192 page</title>
      <link>https://community.databricks.com/t5/get-started-discussions/no-space-left-on-device-and-illegalstateexception-have-already/m-p/58893#M6439</link>
      <description>&lt;P&gt;are processing Parquet files or what is the format of your tables?&amp;nbsp;&lt;BR /&gt;can you split your sql query instead of having a huge query with 1700 lines&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 19:38:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/no-space-left-on-device-and-illegalstateexception-have-already/m-p/58893#M6439</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2024-01-31T19:38:21Z</dc:date>
    </item>
  </channel>
</rss>

