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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group