Delta Live Tables - use cluster-scoped init scripts

MichielPovre
New Contributor II

Hi All,

According the documentation of delta live tables (https://docs.databricks.com/en/delta-live-tables/external-dependencies.html), one can user either global or cluster scoped init scripts. 

However, I don't see an option to select init scripts in the DLT UI? Do I need to set this as a (key,value ) Configuration under the advanced tab?  We need this script to set our pip configuration correctly (otherwise we can not install any python package due to networking issues)

Is there an example (YAML/JSON) of a DLT that uses either a global or cluster-scoped init script? 

 

 

 

AngadSingh
New Contributor III

Hi, 

You can do it via a cluster policy. It can be achieved in two steps: 

View solution in original post