<?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: Databricks query on a warehouse failing with ` spark.driver.maxResultSize` error in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72416#M1378</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106791"&gt;@vishva-fivetran&lt;/a&gt;&amp;nbsp;how are you?&lt;/P&gt;
&lt;P&gt;To set the spark.driver.maxResultSize property, you can do so in the cluster Spark config. The property spark.driver.maxResultSize can be set to a value higher than the value reported in the exception message. For example, if you want to set it to 17g, you would add 'spark.driver.maxResultSize 17g' to your Spark config.&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anardinelli_0-1718133234814.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8226i83984A207D496D89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anardinelli_0-1718133234814.png" alt="anardinelli_0-1718133234814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After that, please save and restart your cluster.&lt;/P&gt;
&lt;P&gt;Be aware that setting a high limit can lead to out-of-memory errors in the driver, depending on spark.driver.memory and the memory overhead of objects in the JVM. Therefore, it's important to set an appropriate limit to prevent such errors.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Alessandro&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 19:14:41 GMT</pubDate>
    <dc:creator>anardinelli</dc:creator>
    <dc:date>2024-06-11T19:14:41Z</dc:date>
    <item>
      <title>Databricks query on a warehouse failing with ` spark.driver.maxResultSize` error</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72341#M1377</link>
      <description>&lt;P data-unlink="true"&gt;we are trying to run a select * from one of our catalog tables. we are seeing the error :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;org.apache.hive.service.cli.HiveSQLException: &lt;/SPAN&gt;&lt;SPAN class=""&gt;Error&lt;/SPAN&gt;&lt;SPAN class=""&gt; running query: org.apache.spark.SparkException: Job aborted due to stage failure: Total size of serialized results of 237 tasks (16.0 GiB) is bigger than spark.driver.maxResultSize 16.0 GiB.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;How do I increase the configuration for the warehouse to increase the maxResultSize ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;Workspace settings &amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Compute &amp;gt; warehouse &amp;gt;&amp;nbsp;Data Access Configuration and&amp;nbsp;SQL Configuration Parameters. Both of them did not support setting this query up.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 15:12:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72341#M1377</guid>
      <dc:creator>vishva-fivetran</dc:creator>
      <dc:date>2024-06-11T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks query on a warehouse failing with ` spark.driver.maxResultSize` error</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72416#M1378</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106791"&gt;@vishva-fivetran&lt;/a&gt;&amp;nbsp;how are you?&lt;/P&gt;
&lt;P&gt;To set the spark.driver.maxResultSize property, you can do so in the cluster Spark config. The property spark.driver.maxResultSize can be set to a value higher than the value reported in the exception message. For example, if you want to set it to 17g, you would add 'spark.driver.maxResultSize 17g' to your Spark config.&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anardinelli_0-1718133234814.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8226i83984A207D496D89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anardinelli_0-1718133234814.png" alt="anardinelli_0-1718133234814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After that, please save and restart your cluster.&lt;/P&gt;
&lt;P&gt;Be aware that setting a high limit can lead to out-of-memory errors in the driver, depending on spark.driver.memory and the memory overhead of objects in the JVM. Therefore, it's important to set an appropriate limit to prevent such errors.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 19:14:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72416#M1378</guid>
      <dc:creator>anardinelli</dc:creator>
      <dc:date>2024-06-11T19:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks query on a warehouse failing with ` spark.driver.maxResultSize` error</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72705#M1380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105332"&gt;@anardinelli&lt;/a&gt;&amp;nbsp;, Thanks for the answer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am able to see the spark configuration for clusters in `All Purpose compute` tab , but am not able to see the spark configuration for a warehouse. Where do i add the spark configuration for a databricks warehouse ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 03:16:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-query-on-a-warehouse-failing-with-spark-driver/m-p/72705#M1380</guid>
      <dc:creator>vishva-fivetran</dc:creator>
      <dc:date>2024-06-12T03:16:43Z</dc:date>
    </item>
  </channel>
</rss>

