How to restart a cluster on databricks using databricks-CLI?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2021 08:32 AM
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".
Labels:
- Labels:
-
Azure
-
Databricks-cli
-
Job
-
Restart Cluster
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 02:20 AM
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.

