<?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: Uninstall whl file from databricks cluster via CLI in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89843#M3661</link>
    <description>&lt;P&gt;Thanks for the immediate response ! Yes, we tried with an inline JSON string and executed it and the command went through without any success or failure messages but didn't do anything. The whl file was still there in the cluster even after a restart so we had to mark this as failed. The older CLI had an uninstall all libraries method. Is that still supported ? If not could you please send across a command with an actual JSON string with a dummy whl file ? We will compare if there were any formatting issues on our end and was the reason the uninstall didn't happen. Btw, we are using databricks CLI 0.227.1&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 16:08:44 GMT</pubDate>
    <dc:creator>Visakh_Vijayan</dc:creator>
    <dc:date>2024-09-13T16:08:44Z</dc:date>
    <item>
      <title>Uninstall whl file from databricks cluster via CLI</title>
      <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89665#M3656</link>
      <description>&lt;P&gt;Hello, we have a need to uninstall older versions of whl files from personal cluster via databricks CLI - could you please provide the exact command to be used here. We tried with many found on the documentations but none of them worked to do the actual uninstall. Please help here. Thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 18:03:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89665#M3656</guid>
      <dc:creator>Visakh_Vijayan</dc:creator>
      <dc:date>2024-09-12T18:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall whl file from databricks cluster via CLI</title>
      <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89714#M3657</link>
      <description>&lt;P&gt;This topic is a very nice&amp;nbsp;&lt;A href="https://www.mcdvoice.site" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Official Site &lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;Thank you for sharing&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 05:35:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89714#M3657</guid>
      <dc:creator>michael569gardn</dc:creator>
      <dc:date>2024-09-13T05:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall whl file from databricks cluster via CLI</title>
      <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89727#M3659</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/120567"&gt;@Visakh_Vijayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Did you try to use databricks libraries uninstall? It's exactly crafted for this purpose&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks libraries uninstall --json YOUR_JSON_WITH_REQUEST_BODY&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Also, when you uninstall a library from a cluster, the library is removed only when&amp;nbsp;you restart the cluster. Until you restart the cluster, the status of the uninstalled library appears as Uninstall pending restart.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 08:48:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89727#M3659</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-13T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall whl file from databricks cluster via CLI</title>
      <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89843#M3661</link>
      <description>&lt;P&gt;Thanks for the immediate response ! Yes, we tried with an inline JSON string and executed it and the command went through without any success or failure messages but didn't do anything. The whl file was still there in the cluster even after a restart so we had to mark this as failed. The older CLI had an uninstall all libraries method. Is that still supported ? If not could you please send across a command with an actual JSON string with a dummy whl file ? We will compare if there were any formatting issues on our end and was the reason the uninstall didn't happen. Btw, we are using databricks CLI 0.227.1&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 16:08:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/89843#M3661</guid>
      <dc:creator>Visakh_Vijayan</dc:creator>
      <dc:date>2024-09-13T16:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall whl file from databricks cluster via CLI</title>
      <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/90629#M3681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/120567"&gt;@Visakh_Vijayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sorry for late response, I didn't notice your reply. So I prepared simple example. Here I installed whl file on a cluster using below command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks libraries install --json `@libraries_to_install.json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1726513092476.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11262i2547970734FC509B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1726513092476.png" alt="szymon_dybczak_0-1726513092476.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The content of libraries_to_install.json file looks following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
  "cluster_id": "your_cluster_id",
  "libraries": [
    {
      "whl": "/Workspace/Users/path_to_your_wheel/my_package-0.1-py2.py3-none-any.whl"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result I have installed whl library on cluster:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_1-1726513269180.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11263i865438D55FC1E2CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_1-1726513269180.png" alt="szymon_dybczak_1-1726513269180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, to uninstall library I used below command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks libraries uninstall --json `@libraries_to_uninstall.json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The content of libraries_to_uninstall.json is following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
  "cluster_id": "your_cluster_id",
  "libraries": [
    {
      "whl": "/Workspace/Users/path_to_your_wheel/my_package-0.1-py2.py3-none-any.whl"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After cluster restarted, wheel library uninstalled successfully .&lt;/P&gt;&lt;P&gt;Edit: If you use powershell terminal use backtick to escape&amp;nbsp;@ character&lt;STRONG&gt;&amp;nbsp;`@libraries_to_uninstall.json&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 19:09:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/90629#M3681</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-16T19:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall whl file from databricks cluster via CLI</title>
      <link>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/90740#M3682</link>
      <description>&lt;P&gt;Thanks a bunch ! Yep, that worked like a charm - appreciate the detailing of the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 15:30:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/uninstall-whl-file-from-databricks-cluster-via-cli/m-p/90740#M3682</guid>
      <dc:creator>Visakh_Vijayan</dc:creator>
      <dc:date>2024-09-17T15:30:04Z</dc:date>
    </item>
  </channel>
</rss>

