Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
APPLIES TO:
Azure Data Factory
Azure Synapse Analytics
The Azure Databricks Job Activity (Preview) in a pipeline runs Databricks jobs in your Azure Databricks workspace, including serverless jobs. This article builds on the data transformation activities article, which presents a general overview of data transformation and the supported transformation activities. Azure Databricks is a managed platform for running Apache Spark.
You can create a Databricks job directly through the Azure Data Factory Studio user interface.
Important
The Azure Databricks Jobs activity is currently in preview. This information relates to a pre-release product that may be substantially modified before it's released. Azure makes no warranties, expressed or implied, with respect to the information provided here.
To use a Job activity for Azure Databricks in a pipeline, complete the following steps:
Search for Job in the pipeline Activities pane, and drag a Job activity to the pipeline canvas.
Select the new Job activity on the canvas if it isn't already selected.
Select the Azure Databricks tab to select or create a new Azure Databricks linked service that executes the Job activity.
Select the Settings tab and specify the job to be executed on Azure Databricks, optional base parameters to be passed to the job, and any other libraries to be installed on the cluster to execute the job.
Here's the sample JSON definition of a Databricks Job Activity:
{
"activity": {
"name": "MyActivity",
"description": "MyActivity description",
"type": "DatabricksJob",
"linkedServiceName": {
"referenceName": "MyDatabricksLinkedservice",
"type": "LinkedServiceReference"
},
"typeProperties": {
"jobID": "012345678910112",
"jobParameters": {
"testParameter": "testValue"
},
}
}
}
The following table describes the JSON properties used in the JSON definition:
Property | Description | Required |
---|---|---|
name | Name of the activity in the pipeline. | Yes |
description | Text describing what the activity does. | No |
type | For Databricks Job Activity, the activity type is DatabricksJob. | Yes |
linkedServiceName | Name of the Databricks Linked Service on which the Databricks job runs. To learn about this linked service, see Compute linked services article. | Yes |
jobId | The ID of the job to be run in the Databricks Workspace. | Yes |
jobParameters | An array of Key-Value pairs. Job parameters can be used for each activity run. If the job takes a parameter that isn't specified, the default value from the job will be used. Find more on parameters in Databricks Jobs. | No |
You can pass parameters to jobs using jobParameters property in Databricks activity.