Databricks Install Libraries through Libraries API is not working

534 Views Asked by At

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"
}
1

There are 1 best solutions below

0
On

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.