07-02-2025 11:20 AM
Hi everyone,
We’re in the process of migrating from all-purpose clusters to serverless compute in Databricks. On our all-purpose clusters, we’ve been setting specific Spark configurations (e.g., via the cluster’s advanced options). However, we’ve noticed that serverless compute doesn’t expose the same “Advanced Options” UI for Spark config overrides.
Is there a recommended way to apply custom Spark configurations when using serverless compute? Ideally, we’d like to apply these settings at cluster start or job submission time.
Any guidance or best practices would be greatly appreciated!
Below are the configs we are setting:
Overwrite partitions:
Remove default files written (_started, _SUCCESS, _committed):
Thanks,
Mac
07-02-2025 11:33 AM - edited 07-02-2025 11:34 AM
Hi @mac_delvalle ,
I'm afraid that when it comes to serverless compute your options are kind of limited.Severless compute does not support setting most Spark properties for notebooks or job. According to following documentation entry: "Severless compute does not support setting most Spark properties for notebooks or job"
07-02-2025 11:33 AM - edited 07-02-2025 11:34 AM
Hi @mac_delvalle ,
I'm afraid that when it comes to serverless compute your options are kind of limited.Severless compute does not support setting most Spark properties for notebooks or job. According to following documentation entry: "Severless compute does not support setting most Spark properties for notebooks or job"
07-15-2025 08:00 AM
Thank you for your reply. Hopefully they add this functionality in the future.
07-15-2025 08:32 AM
Hi @mac_delvalle ,
If any of the answers were helpful to you, consider marking it as an accepted solution. This way, the next person with a similar question will be able to find the solution to their problem more quickly.
07-15-2025 08:09 AM
I think you will not be able to set spark configurations in cluster in serverless. But you can put this in notebook.
spark.conf.set(
"spark.sql.sources.partitionOverwriteMode", "dynamic"
)
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now