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: 

I would like to get the below error solved Cluster scoped init script dbfs:/FileStore/tables/***.sh failed: Script exit status is non-zero

Vignesh2806
New Contributor II

I am trying to run the databricks cluster, but at times the cluster takes long time to get set up & After some time it throws the below error.

Cluster scoped init script dbfs:/FileStore/tables/***.sh failed: Script exit status is non-zero

The init scripts run at certain times & fail at some times . Not sure why this is not a regular issue

Can you please help me with How I can resolve this ?

2 REPLIES 2

Hubert-Dudek
Esteemed Contributor III

"Script exit status is non-zero," which means that the script returned some error. To debug, you need to identify what exactly.

The output of the bash script is in cluster logs. You can add some echo (timestamp and code executed) in the script to know what was processed.

You can also implement some error handling logic in bash, but it isn't pleasant https://linuxhint.com/bash_error_handling/

Vidula
Honored Contributor

Hi @Vignesh Ravichandran​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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