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:ย 

Unity Catalog Volume as spark checkpoint location

Balazs
New Contributor III

Hi,

I tried to set the spark checkpoint location in a notebook to a folder in a Unity Catalog Volume, with the following command: 

sc.setCheckpointDir("/Volumes/catalog_name/schema_name/volume_name/folder_name")

Unfortunately I receive the following error: "Py4JJavaError: An error occurred while calling o356.setCheckpointDir. : java.io.IOException: Operation not permitted".

My user have all privileges granted on the volume.

Did anyone face the same issue? Is it possible to use Databricks volumes as storage location for checkpoints?

 

1 REPLY 1

Erp12
New Contributor II

I am facing the same issue on DBR 14.3 and the beta of 15.4.

My cluster is using the "Unrestricted" policy and "Single user" access mode set a user which has permission to read and write to the volume. I tested the permissions by writing a small dataframe to my desired checkpoint folder directly (with .write instead of .setCheckpointDir followed by .checkpoint) and did not get the error. The exception is only raised when setting the volume as Spark's checkpoint directory.

Here is a bit more of the stack trace when calling .setCheckpointDir on a Unity catalog volume.

java.io.IOException: Operation not permitted
	at java.io.UnixFileSystem.canonicalize0(Native Method)
	at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:177)
	at java.io.File.getCanonicalPath(File.java:626)
	at java.io.File.getCanonicalFile(File.java:651)
	at org.apache.spark.util.SparkFileUtils.resolveURI(SparkFileUtils.scala:49)
	at org.apache.spark.util.SparkFileUtils.resolveURI$(SparkFileUtils.scala:33)
	at org.apache.spark.util.Utils$.resolveURI(Utils.scala:105)
	...

What storage solution is recommended for setting the cluster checkpoint directory in Databricks, if not Unity volumes?

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