# Configure spark.driver.maxResultSize

**URL:** <https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539>\
**Category:** Spark\
**Created:** [May 20, 2022, 7:58am UTC](https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539 "2022-05-20T07:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![topereir](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@topereir](https://swan-community.web.cern.ch/u/topereir)\
**Post date:** [May 20, 2022, 7:58am UTC](https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539/1 "2022-05-20T07:58:51Z")

</div>

Hello,  
I am trying to increase the spark.driver.maxResultSize to 2g instead of the 1g by default, but I get the following error message:

 ![spark error](https://swan-community.web.cern.ch/uploads/default/original/1X/aacad1d3f2f87bb1112799268db3d3d1faf0f0fa.png)

Are we not allowed to change this parameter or is there another way to increase the maxResultSize?

Thanks in advance,  
Tomas

---

<div class="post-metadata">

**Author:** ![rcastell](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/r/da6949/32.png) [@rcastell](https://swan-community.web.cern.ch/u/rcastell)\
**Post date:** [May 20, 2022, 8:37am UTC](https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539/2 "2022-05-20T08:37:18Z")

</div>

Hi,

yes you can change the parameter on your side.  
You will need to do it from the ‘SparkConnector’ interface (which sets this option before the Spark Application is started). e.g.

 ![Screenshot 2022-05-20 at 10.36.19](https://swan-community.web.cern.ch/uploads/default/original/1X/fab24708eab64ce50ca8774b26de8c63113b40d2.png)

Cheers,  
Riccardo

---

<div class="post-metadata">

**Author:** ![topereir](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@topereir](https://swan-community.web.cern.ch/u/topereir)\
**Post date:** [May 20, 2022, 8:56am UTC](https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539/3 "2022-05-20T08:56:12Z")

</div>

Thank you!
