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.  

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now