sushiman
sushiman

Reputation: 25

Databricks: Automatically run notebook on databricks cluster launch

Is there anyway to automatically trigger a notebook to be executed once a cluster starts?

Upvotes: 1

Views: 857

Answers (1)

Shane
Shane

Reputation: 626

You can try using jobs cluster and dynamically attach your notebooks, which will trigger the notebook once the cluster comes up. https://docs.databricks.com/workflows/jobs/jobs.html#create-a-job

enter image description here

If you see the above pic, you could attach your notebook and choose the type as 'notebook' and when ever the cluster comes up, it will automatically deploy your notebook and start its execution.

Upvotes: 2

Related Questions