โ05-06-2022 10:55 PM
Hi Team,
Is it possible to have a startup notebook in databricks similar to init sql script (
This need to run on start of every cluster )
โ05-08-2022 02:40 PM
@somanath Sankaranโ , Running a notebook while the cluster is starting won't be possible. If your requirement is for auditing, you can configure the audit logs.
https://docs.databricks.com/administration-guide/account-settings/audit-logs.html
โ05-07-2022 03:43 AM
There is a way to do that using terraform but it will be complicated... https://github.com/databrickslabs/terraform-provider-databricks
If you need something less complicated: for jobs cluster is easy just set task on which all others will depend.
Another way which I think of is to set the azure function which runs every minute and checks for new running clusters and then triggers their notebook.
In Azure using event grid and logic apps you can also monitor new VM deployment ad than trigger notebook.
โ05-07-2022 04:30 AM
@Hubert Dudekโ thanks but it will be helpful if Databricks provides something out of the box
as I am planning to set some startup tasks for auditing purpose (for eg secret detection etc ) .
Another easy way is to have %run on top of every notebook but devs can escape by not executing it
Also I need it on interactive cluster
โ05-08-2022 02:40 PM
@somanath Sankaranโ , Running a notebook while the cluster is starting won't be possible. If your requirement is for auditing, you can configure the audit logs.
https://docs.databricks.com/administration-guide/account-settings/audit-logs.html
โ05-13-2022 03:51 AM
Hi @somanath Sankaranโ , Just a friendly follow-up. Do you still need help, or @Prabakar Ammeappinโ 's response help you to find the solution? Please let us know.
โ05-18-2022 12:29 AM
@Kaniz Fatmaโ I think we dont have the option to do the same in Databricks
โ05-18-2022 12:35 AM
Hi @somanath Sankaranโ , Well, In that case, would you like to raise a feature request at the Databricks portal here?
โ05-26-2022 05:18 AM
@Kaniz Fatmaโ sure will do
โ05-26-2022 05:30 AM
Great, Thanks!
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group