Using Init scripts using DBX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 05:32 AM
I specify init scripts in my deployment.conf, as below:
basic-static-cluster: &basic-static-cluster
new_cluster:
spark_version: "13.0.x-scala2.12"
num_workers: 1
node_type_id: "n2-highmem-2"
init_scripts:
- workspace:
destination: file:fuse://conf/init_libraries.sh
On the job cluster initialization, i get an error:
Run result unavailable: run failed with error message
Unexpected failure while waiting for the cluster (0509-103955-fc4levri) to be ready: Cluster 0509-103955-fc4levri is in unexpected state Terminating: INIT_SCRIPT_FAILURE(CLIENT_ERROR): databricks_error_message:RESOURCE_DOES_NOT_EXIST: No file found at /dbfs/dbx/mosaic_workflows/adb789dd822f44a0bf8ee77ac54fad7a/artifacts/conf/init_libraries.sh.
I see it uses the correct path where the file is present. I checked on the DBFS location and i can see this file.
Now, I am aware that the DBFS is going to be deprecated soon and I should maintain the file on the workspace files. How do I i keep the file on workspace using DBX? When storing the file on workspace, how do i reference this using FUSE?
- Labels:
-
Dbx
-
Init
-
Init Scripts
-
Job Cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 06:46 AM
Hi, you can work with files differently in Databricks.
You can refer to https://docs.databricks.com/files/index.html
Please let us know if this helps. Also, please tag @Debayan with your next comment so that I will get notified. Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2023 10:01 PM
Hi @Naga Vaibhav Elluru
We haven't heard from you since the last response from @Debayan Mukherjee , and I was checking back to see if her suggestions helped you.
Or else, If you have any solution, please share it with the community, as it can be helpful to others.
Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

