cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Init scripts using DBX

naga_databricks
Contributor

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?

2 REPLIES 2

Debayan
Esteemed Contributor III
Esteemed Contributor III

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!

Anonymous
Not applicable

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.