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

Compute Policy Does Not Install Libraries

Kayla
Valued Contributor

Has anyone else run into the issue where applying libraries through a compute policy just completely does not work?
I'm trying to insane some pretty basic Python libraries from PyPI (pytest and paramiko, for example) and it is failing on 13.3 and 14.3 LTS versions.

I am using "Shared" access mode and Unity Catalog enabled.

1 ACCEPTED SOLUTION

Accepted Solutions

Kayla
Valued Contributor

I was able to install these libraries using a %pip command, so they are definitely compatible with the cluster.
I'm also using an all-purpose cluster doing interactive development work, so the dependent libraries for workflows aren't relevant here.

Interesting change I've seen- the libraries are now installing properly. At a guess, there was some sort of delay after I apply to the policy to the cluster (the cluster was previously on a different policy)

View solution in original post

2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @Kayla, In Databricks, compute policies control various aspects of cluster behavior.

When you add libraries to a policy:

  • Users canโ€™t install or uninstall compute-scoped libraries on compute that uses this policy.
  • Libraries configured through the UI, REST API, or CLI on existing compute are removed the next time the compute restarts.
  • Dependency libraries for tasks that use this policy in job compute resources are disabled.
  • Please verify that the Python libraries youโ€™re trying to install (such as pytest and paramiko) are compatible with the Databricks runtime versions 13.3 and 14.3 LTS. Sometimes library versions can cause conflicts, so ensure they align with the Databricks runtime youโ€™re using.

Kayla
Valued Contributor

I was able to install these libraries using a %pip command, so they are definitely compatible with the cluster.
I'm also using an all-purpose cluster doing interactive development work, so the dependent libraries for workflows aren't relevant here.

Interesting change I've seen- the libraries are now installing properly. At a guess, there was some sort of delay after I apply to the policy to the cluster (the cluster was previously on a different policy)

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