cli icon indicating copy to clipboard operation
cli copied to clipboard

`databricks clusters edit --json` does not update terminated clusters

Open zoe-oncorps opened this issue 2 years ago • 0 comments

Despite the documentation noting A cluster can be updated if it is in a RUNNING or TERMINATED state. (see here), when trying to update a cluster in terminated state via the Databricks CLI v0.207.1, I get the following error codes: Error: failed to reach RUNNING, got TERMINATED: Finding instances for new nodes, acquiring more instances if necessary Error: failed to reach RUNNING, got TERMINATED: Termination requested by [email protected]

(The latter part of the error message seems to return the state_message of the cluster)

I am running the following command: databricks clusters edit --json @clusterConfiguration.json -p prod-v2

Other notes:

  • The edit command works correctly when the cluster is running
  • Interestingly, when trying to update the cluster in terminated state via the Databricks REST API with the same values, the cluster is updated with no issues.

zoe-oncorps avatar Oct 17 '23 02:10 zoe-oncorps