Provision and Wait for Cluster
A 4-step recipe with Azure Databricks. We can help you get access.
Recipe · 4 steps
Provision and Wait for Cluster
with Azure Databricks · IT Infrastructure Management
Create a Databricks cluster and wait until it is RUNNING.
- Create the cluster from the supplied configuration. The cluster starts in a PENDING state and the canonical cluster_id is returned.
- Retrieve the current cluster state. Repeat this step until the cluster reports RUNNING; branch to failure if it reports TERMINATED.
- Re-read the cluster once it is RUNNING to capture its final metadata for the workflow outputs.
- Read the cluster one last time to capture the termination reason when provisioning did not reach RUNNING.
What you'll need to have ready
- token: Databricks personal access token for the Authorization header.
- clusterName: Human-readable name for the new cluster.
- sparkVersion: Databricks Runtime version key (from listSparkVersions).
- nodeTypeId: Azure VM node type id for the workers and driver.
- numWorkers: Number of worker nodes for a fixed-size cluster.
- autoterminationMinutes: Idle minutes before the cluster auto-terminates.
For your developer
Arazzo workflow microsoft-azure-databricks:provision-cluster, 4 operations: createCluster → getCluster → getCluster → getCluster. Specs on APIs.io.