Execute Databricks init script in ADF located in Workspace

Tom Leeflang 10 Reputation points
2023-05-27T08:52:28.5066667+00:00

Hi all,

Is it possible to run an init script from ADF pipeline that is located in the Databricks Workspace?

2023-05-27_10h49_26

It seems that the default pathing to a configured init script is dbfs. I namely receive the error below:

2023-05-27_10h51_17

Thank you in advance!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-05-29T08:22:30.0133333+00:00

    @Tom Leeflang - Thanks for the question and using MS Q&A platform.

    Init script path should be a folder in the dbfs - example: dbfs:/databricks/scripts/initscript.sh

    As per the repo, I had created a init script named odbc-install.shand upload to the folder named dbfs:/databricks/scriptsand path looks like this:

    dbfs:/databricks/scripts/odbc-install.sh
    

    User's image

    Now pass the same path of the init scripts in the ADF linked service as shown below.

    User's image

    When I ran the Databricks Notebook activity, I'm able to install the initscript succesfully without any issue.

    User's image

    Here is the Event logs of the cluster:

    User's image

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.