<?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: uninstalled libraries gets installed back on cluster after restart in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/uninstalled-libraries-gets-installed-back-on-cluster-after/m-p/95665#M39143</link>
    <description>&lt;P&gt;maybe you can add some time between uninstalling of libraries and restart&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uninstall_libraries&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;time&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sleep&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;60&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Wait for the libraries to be uninstalled&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;restart_cluster&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 23 Oct 2024 08:26:38 GMT</pubDate>
    <dc:creator>saurabh18cs</dc:creator>
    <dc:date>2024-10-23T08:26:38Z</dc:date>
    <item>
      <title>uninstalled libraries gets installed back on cluster after restart</title>
      <link>https://community.databricks.com/t5/data-engineering/uninstalled-libraries-gets-installed-back-on-cluster-after/m-p/95647#M39137</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I am trying to update libraries on Data bricks cluster by uninstalling existing libraries and installing new ones. When I make api call to uninstall libraries and restart cluster, libraries first show as they are being uninstalled but after cluster comes back into Running state uninstalled libraries gets installed back to the cluster. I have seen similar behavior when I uninstall and restart from Data bricks UI as well. This behavior is intermittent and doesn't happen consistently. I have seen some instances where libraries stay uninstalled.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Notes :&lt;/P&gt;&lt;P&gt;1. There are no init_scripts in the cluster&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN&gt;"is_library_for_all_clusters" is set to false&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;when checking for libraries/cluster-status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. This is happening for both Python and Scala libraries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Runtime being used is 12.2LTS&lt;BR /&gt;&lt;BR /&gt;As you can see in the screenshots attached, I have 3 libraries installed initially. I try to uninstall both PyPi libraries and restart. After the restart, we can see that one of the library got installed back on the cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:51:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uninstalled-libraries-gets-installed-back-on-cluster-after/m-p/95647#M39137</guid>
      <dc:creator>ChiragM</dc:creator>
      <dc:date>2024-10-23T06:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: uninstalled libraries gets installed back on cluster after restart</title>
      <link>https://community.databricks.com/t5/data-engineering/uninstalled-libraries-gets-installed-back-on-cluster-after/m-p/95665#M39143</link>
      <description>&lt;P&gt;maybe you can add some time between uninstalling of libraries and restart&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uninstall_libraries&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;time&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sleep&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;60&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Wait for the libraries to be uninstalled&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;restart_cluster&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Oct 2024 08:26:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uninstalled-libraries-gets-installed-back-on-cluster-after/m-p/95665#M39143</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2024-10-23T08:26:38Z</dc:date>
    </item>
  </channel>
</rss>

