cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Default maximum spark streaming chunk size in delta files in each batch?

Data_Engineer3
Contributor III

working with delta files spark structure streaming , what is the maximum default chunk size in each batch?

How do identify this type of spark configuration in databricks?

#[Databricks SQL]โ€‹ #[Spark streaming]โ€‹ #[Spark structured streaming]โ€‹ #Sparkโ€‹ 

3 REPLIES 3

NandiniN
Honored Contributor
Honored Contributor

Hello @KARTHICK Nโ€‹ ,

The default value for spark.sql.files.maxPartitionBytes is 128 MB. These defaults are in the Apache Spark documentation https://spark.apache.org/docs/latest/sql-performance-tuning.html (unless there might be some overrides).

To check the configurations you can navigate to the Environment tab of the Spark UI and check for the config.

Hope that helps.

Thanks & Regards,

Nandini

Thanks @Nandini Nโ€‹  reply,

I couldn't see this configuration params in databricks job-cluster spark UI, We are using job-cluster for streaming jobs and I don't see this configuration in environment tab in spark UI page.

Is this applicable for streaming concept (because we are using streaming with foreachbatch concept in our project)?

Could you help me to figure it out?

#[Databricks SQL]โ€‹ #[Azure databricks]โ€‹

@NandiniN , I couldn't able to see the setting for structured read stream batch size control during the  processing the data by using foreachbatch.

Is this possible to control the read stream by records count per each batch in structured streaming?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group