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: 

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
Databricks Employee
Databricks Employee

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.

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