Sandy
Sandy

Reputation: 17

Databricks Install Libraries through Libraries API is not working

I'm trying to install libraries using this api: https:///api/2.0/libraries/install/ Here is the body:

   {
     "cluster_id": "<CLUSTER_ID>",
     "libraries": [
        {
          "pypi": {
                "package": "cryptography==3.4.7"
            }
        }
      ]
    }

And I'm getting the below response while my clusterId is valid and it's running

{
"error_code": "INVALID_PARAMETER_VALUE",
"message": "Cluster <CLUSTER_ID> is terminated or does not exist"
}

Upvotes: 0

Views: 624

Answers (1)

Vamsi Bitra
Vamsi Bitra

Reputation: 2764

Recently I have encountered same issue. This happened when I have 2 clusters with same name, but one is active, and the other is terminated. For some reason it is pulling the terminated cluster when used.

I have removed the cluster which is terminated and now it is working fine.

Upvotes: 0

Related Questions