Azure Databricks and init script

Gopinath Rajee 656 Reputation points
2022-08-30T04:51:11.323+00:00

All,

I'm trying to get the init script working which I loaded into the "init scripts" tab. But the cluster is failing to start with the error

{  
  "reason": {  
    "code": "INIT_SCRIPT_FAILURE",  
    "type": "CLIENT_ERROR",  
    "parameters": {  
      "instance_id": "1ff1f250da6f40f1862dbe8e29e9b259",  
      **"databricks_error_message": "Cluster scoped init script dbfs:/FileStore/initscripts/init.bash failed: Script exit status is non-zero"**  
    }  
  }  
}  

What am I doing wrong?

Thanks,
grajee

235860-initscript.jpg

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2022-08-30T10:29:42.35+00:00

    Hello @Gopinath Rajee ,

    Thanks for the question and using MS Q&A platform.

    If a cluster-scoped init script returns a non-zero exit code, the cluster launch fails. You can troubleshoot cluster-scoped init scripts by configuring cluster log delivery and examining the init script log.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is howd
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.