Hi @Kaniz Fatma (Databricks)​, That article is actually the one I was referring to in the middle of my post (re: cluster-scoped init script).

However, even following the same steps to create a script on the DBFS root, I still cannot add it to the cluster settings.

The exact steps that fail:

  • Go to cluster created by model serving
  • Click "Edit" for cluster
  • Open Advanced Options, go to Init Scripts
  • Input the script path with "dbfs:/" (example: "dbfs:/databricks/scripts/dns-add.sh")
  • Click Add, then "Confirm and Restart" at the top of the page

These steps are as seen in this section of the article: https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-i...

When I click "Confirm and Restart", that's when an error appears: "Error: Cannot edit cluster ****-******-******** created by ModelServing".

I guess I have three questions then:

  1. Is this a bug?
  2. Is there a way to get this to work?
  3. Is there any other easier/more consistent solution? This would require manually editing every model serving cluster that gets created.

Thanks!

-Anthony