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

How to restart a cluster on databricks using databricks-CLI?

User16790091296
Contributor II

I'm trying to restart an existing cluster in Databricks on Azure using databricks-cli.

I'm using the following command:

databricks clusters restart {"cluster_id": "0710-121255-liner30"}

But it gives giving me this error:

Error: Missing option "--cluster-id".

1 REPLY 1

User16766737456
Databricks Employee
Databricks Employee

Can you try:

databricks clusters restart --cluster-id <the-cluster-id>
$ databricks clusters restart --help
Usage: databricks clusters restart [OPTIONS]
 
  Restarts a Databricks cluster given its ID.
 
  If the cluster is not currently in a RUNNING state, nothing will happen
 
Options:
  --cluster-id CLUSTER_ID  Can be found in the URL at https://*.cloud.databric
                           ks.com/#/setting/clusters/$CLUSTER_ID/configuration
                           .  [required]
  --debug                  Debug Mode. Shows full stack trace on error.
  --profile TEXT           CLI connection profile to use. The default profile
                           is "DEFAULT".
  -h, --help               Show this message and exit.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now