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:ย 

How to add shared libs

Brad
Contributor II

Hi team,

I want to add some shared libs which might be used by many repos, e.g. some util functions which might be used by any repos.

1. What is the recommended way to add those libs? E.g. create a separate repo and reference it in another repo?

2. How to control the permission? 

3. How to control diff versions?

4. How to share from diff workspaces?

 

Thanks

3 REPLIES 3

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @Brad,

You can use cluster libraries so whenever interacting with repos libraries are available. Also the cluster can be shared to others. https://docs.databricks.com/en/libraries/cluster-libraries.html.

About permissions you can control them over cluster permissions too. 

Brad
Contributor II

Hi @Alberto_Umana , thanks for response. What if each job is using a job cluster?

radothede
Contributor III

Hi @Brad 

Typically, You specify shared libraries in init script. From there, init script will be executed for each job compute, ensuring lib consistency.

The other way - You could use a job cluster policy and specify desired libraries that will be provided during the cluster setup.

Best,

Rado.  

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