How to add shared libs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2025 02:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2025 05:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 09:48 AM
Hi @Alberto_Umana , thanks for response. What if each job is using a job cluster?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 02:28 AM
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.

