Azure Data Factory without Azure databricks

86 Views Asked by At

I am new to ADF. I am trying to create a ADF pipeline. I need to run a query on delta tables and send the output csv file to sftp. I should not use Databricks connection. Is that possible ??

I tried using Azure databricks connection. It’s costlier operation my manager says. He asked me to try with out databricks connection.

1

There are 1 best solutions below

1
Rakesh Govindula On

If you want to send the delta table data to SFTP using ADF, then the connection to databricks is necessary. Without the databricks connection, ADF cannot copy the query data to the target.

If you are sending the delta table data to SFTP through the code itself rather than ADF, then you can try the below workaround.

Put all the code in a notebook and create job for that notebook.

enter image description here

Use the Job Id and execute this job using REST API POST request.

URL : https://<databricks_instance>/api/2.1/jobs/run-now
Body:
{
"job_id":<Job_id>
}
Authorization: Bearer <PAT token from databricks>

Use web activity like below to do this.

enter image description here

Web activity will execute the job and returns the run_id of the job.

enter image description here

Notebook execution:

enter image description here