cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
New Contributor III
New Contributor III

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.