Closed e-gunduz closed 1 month ago
It seems like correct configuration should be
init_scripts:
volumes:
- destination: "path to init_script.sh"
On v0.219.0 you should also see warnings on incorrect configuration when running databricks bundle validate
.
The correct configuration (per the API docs) should be:
init_scripts: # Array with objects
- volumes: # Single key object
destination: /path
Ok the problem was indentation. It was parsed
init_scripts=['volumes':{}, 'destination': '/path']
now it is
init_scripts=['volumes':{'destination': '/path'}]
Thank you for that :)
Describe the issue
I would like to add my init_script to my job clusters but could not find a documentation or any example code? Is this supported?
Configuration
This is part of my job cluster configuration in .yaml file
I have tried to add this, similar to cluster JSON configs.
Steps to reproduce the behavior
How I deploy the code?
databricks bundle deploy -t test
I get
If I replace the init_scripts config with this
It works but init_script is not defined in the cluster configs in the UI.
OS and CLI version
Databricks CLI version: v0.219.0 OS: MacOS
Is this a regression?
This never worked.
Debug Logs
Repeatedly: