简体   繁体   中英

how to to Restart the Databricks Cluster at the specific time either using script or Job manager

Command for restart is available but not have a option at specific time. databricks clusters restart --cluster-id <>

You can run the below command either using a script or in a Databricks Notebook (using the %sh magic command):

curl \
  -X POST \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{"cluster_id": "<CLUSTER_ID>"}' \
  https://<URL>/api/2.0/clusters/restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM