-werners-
Esteemed Contributor III

you can't run this script in a notebook.

You have to provide it to the cluster in the cluster settings (Init Scripts).

The script has to be present on the location you put it (f.e. Filestore in dbfs)