โ03-22-2023 03:13 PM
Currently we have an Init script that specifies the location of different network resources by updating the hosts file. When we moved to the Unity catalog all of our clusters had to be upgraded to support it. Now our scripts have stopped working due to TCP/IP failures. I couldn't find the answer easily and the only reference I've been able to find is a forum post by @Hubert Dudekโ OracleDB shared Cluster / DBFS on Unity Catalog Cluster (databricks.com) showing that init scripts won't work on shared clusters. Are there any plans to change this functionality?
โ03-29-2023 03:01 AM
โ03-22-2023 09:11 PM
@Christopher Shehuโ :
At the moment, shared compute resources in Databricks do not support init scripts. This is because shared compute resources are intended for lightweight, ephemeral workloads and do not provide the same level of control over the underlying infrastructure as dedicated clusters.
However, Databricks is continuously improving its platform and adding new features, so it's possible that support for init scripts on shared compute resources could be added in the future. In the meantime, you may need to consider alternative approaches for setting up network resources, such as using a custom Docker container or configuring the resources manually in your notebooks.
With Unity Catalog - shared compute resources in Databricks do support init scripts
โ03-23-2023 01:18 AM
Good morning I'm a little confused. Initially you say that shared compute resources do not support init scripts but then at the end you say they do? How does this work? We're using unity catalog and it doesn't appear to.
As far as improvements I would suggest adding some sort of indicator in the compute resource screen to clarify what is and isn't available. I spent hours troubleshooting why my code was failing and only discovered the reason after looking at the compute logs showing that the init scripts aren't' running.
โ03-26-2023 10:19 AM
Hi @Christopher Shehuโ, did you try the global script in place of the init script,?
โ03-29-2023 03:01 AM
We are bringing soon init script and Scala to shared Cluster
โ03-29-2023 05:12 AM
Thanks @Youssef Mriniโ !
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