<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't Add Cluster-scoped Init Script to Model Serving Cluster in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18398#M1013</link>
    <description>&lt;P&gt;Hi &lt;A href="https://community.databricks.com/s/profile/0053f000000tvpbAAA" alt="https://community.databricks.com/s/profile/0053f000000tvpbAAA" target="_blank"&gt;@Kaniz Fatma&lt;/A&gt; (Databricks)​, That article is actually the one I was referring to in the middle of my post (re: cluster-scoped init script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, even following the same steps to create a script on the DBFS root, I still cannot add it to the cluster settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact steps that fail:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to cluster created by model serving&lt;/LI&gt;&lt;LI&gt;Click "Edit" for cluster&lt;/LI&gt;&lt;LI&gt;Open Advanced Options, go to Init Scripts&lt;/LI&gt;&lt;LI&gt;Input the script path with "dbfs:/" (example: "dbfs:/databricks/scripts/&lt;A href="https://dns-add.sh" alt="https://dns-add.sh" target="_blank"&gt;dns-add.sh&lt;/A&gt;")&lt;/LI&gt;&lt;LI&gt;Click Add, then "Confirm and Restart" at the top of the page&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These steps are as seen in this section of the article: &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-init-script-using-the-ui" alt="https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-init-script-using-the-ui" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-init-script-using-the-ui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click "Confirm and Restart", that's when an error appears: "Error: Cannot edit cluster ****-******-******** created by ModelServing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I have three questions then:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is this a bug?&lt;/LI&gt;&lt;LI&gt;Is there a way to get this to work?&lt;/LI&gt;&lt;LI&gt;Is there any other easier/more consistent solution? This would require manually editing every model serving cluster that gets created.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Anthony&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 19:14:55 GMT</pubDate>
    <dc:creator>anthonylavado</dc:creator>
    <dc:date>2022-06-09T19:14:55Z</dc:date>
    <item>
      <title>Can't Add Cluster-scoped Init Script to Model Serving Cluster</title>
      <link>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18396#M1011</link>
      <description>&lt;P&gt;Similar to this other question: &lt;A href="https://community.databricks.com/s/question/0D58Y00008hahwuSAA/cant-edit-the-cluster-created-by-mlflow-model-serving" alt="https://community.databricks.com/s/question/0D58Y00008hahwuSAA/cant-edit-the-cluster-created-by-mlflow-model-serving" target="_blank"&gt;https://community.databricks.com/s/question/0D58Y00008hahwuSAA/cant-edit-the-cluster-created-by-mlflow-model-serving&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using Azure Databricks, and have a model that requires a WHL to be downloaded from a private address. As there is no public DNS record for the hostname, we found that we could use either a Global-Init Script to add the required hosts entry to an all-purpose cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a cluster created by serving a model, I set up an init script following the Azure documentation for a &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#cluster-scoped-init-scripts" alt="https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#cluster-scoped-init-scripts" target="_blank"&gt;Cluster-scoped init script&lt;/A&gt;. Since this can't be specified by default when I start serving the model, I figured I would start it, then go to the settings for the job cluster and try to edit them. When I click on Edit, I put in the path to the script under the advanced options, but when I try to save the change, I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get an init script to run with model serving clusters?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 16:34:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18396#M1011</guid>
      <dc:creator>anthonylavado</dc:creator>
      <dc:date>2022-06-07T16:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Add Cluster-scoped Init Script to Model Serving Cluster</title>
      <link>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18398#M1013</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.databricks.com/s/profile/0053f000000tvpbAAA" alt="https://community.databricks.com/s/profile/0053f000000tvpbAAA" target="_blank"&gt;@Kaniz Fatma&lt;/A&gt; (Databricks)​, That article is actually the one I was referring to in the middle of my post (re: cluster-scoped init script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, even following the same steps to create a script on the DBFS root, I still cannot add it to the cluster settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact steps that fail:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to cluster created by model serving&lt;/LI&gt;&lt;LI&gt;Click "Edit" for cluster&lt;/LI&gt;&lt;LI&gt;Open Advanced Options, go to Init Scripts&lt;/LI&gt;&lt;LI&gt;Input the script path with "dbfs:/" (example: "dbfs:/databricks/scripts/&lt;A href="https://dns-add.sh" alt="https://dns-add.sh" target="_blank"&gt;dns-add.sh&lt;/A&gt;")&lt;/LI&gt;&lt;LI&gt;Click Add, then "Confirm and Restart" at the top of the page&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These steps are as seen in this section of the article: &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-init-script-using-the-ui" alt="https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-init-script-using-the-ui" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/clusters/init-scripts#configure-a-cluster-scoped-init-script-using-the-ui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click "Confirm and Restart", that's when an error appears: "Error: Cannot edit cluster ****-******-******** created by ModelServing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I have three questions then:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is this a bug?&lt;/LI&gt;&lt;LI&gt;Is there a way to get this to work?&lt;/LI&gt;&lt;LI&gt;Is there any other easier/more consistent solution? This would require manually editing every model serving cluster that gets created.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Anthony&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 19:14:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18398#M1013</guid>
      <dc:creator>anthonylavado</dc:creator>
      <dc:date>2022-06-09T19:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Add Cluster-scoped Init Script to Model Serving Cluster</title>
      <link>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18399#M1014</link>
      <description>&lt;P&gt;Has anyone had success with this? Trying to solve a resolve issue.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 23:53:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/can-t-add-cluster-scoped-init-script-to-model-serving-cluster/m-p/18399#M1014</guid>
      <dc:creator>939772</dc:creator>
      <dc:date>2022-11-21T23:53:23Z</dc:date>
    </item>
  </channel>
</rss>

