Unity Catalog - Volumes Upload

Unity Catalog - Volumes Upload

Certified

Upload a file to a Unity Catalog volume

Streams a file from Kestra internal storage to a Unity Catalog volume using the Databricks Files API. The volume must already exist. This is the replacement for the legacy DBFS upload.

yaml
type: io.kestra.plugin.databricks.unitycatalog.volume.Upload

Upload a file to a Unity Catalog volume

yaml
id: databricks_uc_volume_upload
namespace: company.team

inputs:
  - id: file
    type: FILE
    description: File to upload to the volume

tasks:
  - id: upload_file
    type: io.kestra.plugin.databricks.unitycatalog.volume.Upload
    host: "{{ secret('DATABRICKS_HOST') }}"
    authentication:
      token: "{{ secret('DATABRICKS_TOKEN') }}"
    from: "{{ inputs.file }}"
    volumePath: /Volumes/main/landing_zone/raw_files/data.csv
    overwrite: true
Properties

Source file URI

Internal storage URI of the file to upload (kestra://...).

Volume file path

Absolute path of the destination file, in the form /Volumes/<catalog>/<schema>/<volume>/<path>.

Databricks account identifier

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

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.

Definitions
authTypestring

Authentication type

azureClientIdstring

Azure client ID

azureClientSecretstring

Azure client secret

azureTenantIdstring

Azure tenant ID

clientIdstring

Client ID

clientSecretstring

Client secret

googleCredentialsstring

Google credentials JSON

googleServiceAccountstring

Google service account email

passwordstring

Password

tokenstring

Databricks personal access token

usernamestring

Username

Databricks configuration file, use this if you don't want to configure each Databricks account properties one by one

Databricks host

Overwrite existing file

Replace the file if it already exists. Defaults to false, in which case the upload fails when the file exists.

Size of the uploaded file, in bytes

Path of the uploaded file in the volume

The size of the uploaded file, in bytes