Submit a Databricks run.
Optionally, set waitForCompletion to a desired maximum duration to wait for the run completion.
type: "io.kestra.plugin.databricks.job.submitrun"Examples
Submit a Databricks run and wait up to 5 minutes for its completion.
id: databricks_job_submit_run
namespace: company.team
tasks:
- id: submit_run
type: io.kestra.plugin.databricks.job.SubmitRun
host: "{{ secret('DATABRICKS_HOST') }}"
authentication:
token: "{{ secret('DATABRICKS_TOKEN') }}"
runTasks:
- existingClusterId: <your-cluster>
taskKey: pysparkTask
sparkPythonTask:
pythonFile: /Shared/hello.py
sparkPythonTaskSource: WORKSPACE
waitForCompletion: PT5M
Properties
runTasks*RequiredNon-dynamicarray
1The run tasks, if multiple tasks are defined you must set dependsOn on each task.
io.kestra.plugin.databricks.job.SubmitRun-RunSubmitTaskSetting
Task dependencies, set this if multiple tasks are defined on the run.
Task libraries.
io.kestra.plugin.databricks.job.task.LibrarySetting
io.kestra.plugin.databricks.job.task.LibrarySetting-CranSetting
io.kestra.plugin.databricks.job.task.LibrarySetting-MavenSetting
io.kestra.plugin.databricks.job.task.LibrarySetting-PypiSetting
Notebook task settings.
io.kestra.plugin.databricks.job.task.NotebookTaskSetting
Map of task base parameters.
GITWORKSPACEPipeline task settings.
io.kestra.plugin.databricks.job.task.PipelineTaskSetting
Python Wheel task settings.
io.kestra.plugin.databricks.job.task.PythonWheelTaskSetting
Map of task named parameters.
Can be a map of string/string or a variable that binds to a JSON object.
Run job task settings.
io.kestra.plugin.databricks.job.task.RunJobTaskSetting
Spark JAR task settings.
io.kestra.plugin.databricks.job.task.SparkJarTaskSetting
Spark Python task settings.
io.kestra.plugin.databricks.job.task.SparkPythonTaskSetting
GITWORKSPACESpark Submit task settings.
io.kestra.plugin.databricks.job.task.SparkSubmitTaskSetting
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
accountIdstring
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
configFilestring
Databricks configuration file, use this if you don't want to configure each Databricks account properties one by one.
hoststring
Databricks host.
runNamestring
The name of the run.
waitForCompletionstring
durationIf set, the task will wait for the run completion.
Outputs
runIdinteger
The run identifier.
runURIstring
uriThe run URI on the Databricks console.