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: 

Why is my streaming job not resuming even though I specified checkpoint directory

brickster_2018
Databricks Employee
Databricks Employee

I have provided the checkpointLocation as below, however I see the config is ignored for my streaming query

option("checkpointLocation", "path/to/checkpoint/dir")

1 ACCEPTED SOLUTION

Accepted Solutions

brickster_2018
Databricks Employee
Databricks Employee

This is a common question from many users. If the streaming checkpoint directory is specified correctly then this behavior is expected. 

Below is an example of specifying the checkpoint correctly

df.writeStream
 
 .format("parquet")
 
 .option("checkpointLocation", "path/to/checkpoint/dir")
 
 .option("path", "path/to/destination/dir")
 
 .start()

Instead, if you are specifying the checkpointLocation as readStream option it's ignored. One other common scenario where the option is ignored is when you specify the checkpointLocation as an option for the write operation within the forEachBatch. The option should be provided for the writeStream API

View solution in original post

1 REPLY 1

brickster_2018
Databricks Employee
Databricks Employee

This is a common question from many users. If the streaming checkpoint directory is specified correctly then this behavior is expected. 

Below is an example of specifying the checkpoint correctly

df.writeStream
 
 .format("parquet")
 
 .option("checkpointLocation", "path/to/checkpoint/dir")
 
 .option("path", "path/to/destination/dir")
 
 .start()

Instead, if you are specifying the checkpointLocation as readStream option it's ignored. One other common scenario where the option is ignored is when you specify the checkpointLocation as an option for the write operation within the forEachBatch. The option should be provided for the writeStream API

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