1. Learn
  2. /
  3. Courses
  4. /
  5. Databricks with the Python SDK

Connected

Exercise

Start a cluster

Clusters oftentimes are configured to turn off and run in IDLE mode after being inactive for a certain period of time. We can use the clusters service of the Databricks SDK to run a cluster that exists in the authenticated workspace.

Instructions

100 XP
  • Store value of environment variable DATACAMP_CLUSTER_ID in a variable called cluster_id.
  • Start cluster with id stored in environment variable DATACAMP_CLUSTER_ID.