
Databricks CreateCluster
CertifiedCreate a Databricks cluster
Databricks CreateCluster
Create a Databricks cluster
Provisions a new Databricks cluster via the Compute API. Set a fixed worker count with numWorkers or enable autoscaling with minWorkers/maxWorkers; auto termination is optional.
type: io.kestra.plugin.databricks.cluster.CreateClusterExamples
Create a Databricks cluster with one worker.
id: databricks_create_cluster
namespace: company.team
tasks:
- id: create_cluster
type: io.kestra.plugin.databricks.cluster.CreateCluster
authentication:
token: "{{ secret('DATABRICKS_TOKEN') }}"
host: <your-host>
clusterName: kestra-demo
nodeTypeId: n2-highmem-4
numWorkers: 1
sparkVersion: 13.0.x-scala2.12
Properties
clusterName *Requiredstring
Cluster name
sparkVersion *Requiredstring
Spark version
Runtime identifier, e.g. 13.0.x-scala2.12
accountId string
Databricks account identifier
authentication
Databricks authentication configuration
This property allows to configure the authentication to Databricks, different properties should be set depending on the type of authentication and the cloud provider. All configuration options can also be set using the standard Databricks environment variables. Check the Databricks authentication guide for more information.
io.kestra.plugin.databricks.AbstractTask-AuthenticationConfig
Authentication type
Azure client ID
Azure client secret
Azure tenant ID
Client ID
Client secret
Google credentials JSON
Google service account email
Password
Databricks personal access token
Username
autoTerminationMinutes integerstring
Auto-termination minutes
Idle timeout; cluster is terminated after this duration if set
configFile string
Databricks configuration file, use this if you don't want to configure each Databricks account properties one by one
host string
Databricks host
maxWorkers integerstring
Maximum workers
Use with minWorkers to enable autoscaling; ignored when numWorkers is set
minWorkers integerstring
Minimum workers
Use with maxWorkers to enable autoscaling; ignored when numWorkers is set
nodeTypeId string
Node type
Instance type; values depend on the workspace cloud provider
numWorkers integerstring
Fixed workers
Required unless autoscaling is configured; sets numWorkers on the cluster
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
clusterId string
Cluster identifier
clusterState string
ERRORPENDINGRESIZINGRESTARTINGRUNNINGTERMINATEDTERMINATINGUNKNOWNCluster state
clusterURI string
uriCluster console URI