<?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 Corrupted Python installation on Python restart on DBR 13.3 in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/corrupted-python-installation-on-python-restart-on-dbr-13-3/m-p/61502#M6604</link>
    <description>&lt;P&gt;Hey there, we're using DBR 13.3 (no Docker) as general purpose cluster and init the cluster using the following init script:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#!/usr/bin/env bash&lt;BR /&gt;export DEBIAN_FRONTEND=noninteractive&lt;BR /&gt;set -euxo pipefail&lt;/P&gt;&lt;P&gt;if [[ $DB_IS_DRIVER = "TRUE" ]]; then&lt;BR /&gt;echo "I am driver"&lt;BR /&gt;else&lt;BR /&gt;echo "I am executor"&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;curl "&lt;A href="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" target="_blank"&gt;https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&lt;/A&gt;" -o "awscliv2.zip"&lt;BR /&gt;unzip -q awscliv2.zip&lt;BR /&gt;./aws/install&lt;BR /&gt;rm -rf awscliv2.zip aws&lt;/P&gt;&lt;P&gt;aws s3 cp "s3://constructor-analytics-data/deploy/dp_release/${MODE}/latest/dp_requirements.txt" /tmp/all_requirements.txt&lt;/P&gt;&lt;P&gt;/databricks/python/bin/pip install -U pip wheel&lt;BR /&gt;/databricks/python/bin/pip install --no-cache-dir --no-deps -r /tmp/requirements.txt&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;&lt;BR /&gt;The init script, in particular, install boto3==1.29.7 (not &lt;SPAN&gt;boto3==&lt;/SPAN&gt;1.24.28 from vanilla distribution&amp;nbsp;&lt;A href="https://docs.databricks.com/en/release-notes/runtime/13.3lts.html" target="_blank"&gt;https://docs.databricks.com/en/release-notes/runtime/13.3lts.html&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;When there's any OOM happening on the Python side, the driver doesn't restart the node, but (apparently) the Python interpreter restarts.&lt;BR /&gt;&lt;BR /&gt;After it restarts, boto3 stops working, any S3 operation ends with `&lt;SPAN&gt;An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied`. The reason is that boto3 installation &lt;EM&gt;changes &lt;/EM&gt;(screenshot).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Note that&amp;nbsp;service-2.json was absent before the OOM but it appeared after. The time of creation is 6 minutes earlier that nearby files, so I suspect this&amp;nbsp;service-2.json was somehow taken from older botocore. This file is used by botocore to construct HTTP API requests from Python calls, and when this directory gets corrupted, boto3 stops working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Why this file appears suddenly in the botocore library files? Why other files didn't change? What am I doing wrong here?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 17:22:42 GMT</pubDate>
    <dc:creator>ivanychev</dc:creator>
    <dc:date>2024-02-22T17:22:42Z</dc:date>
    <item>
      <title>Corrupted Python installation on Python restart on DBR 13.3</title>
      <link>https://community.databricks.com/t5/get-started-discussions/corrupted-python-installation-on-python-restart-on-dbr-13-3/m-p/61502#M6604</link>
      <description>&lt;P&gt;Hey there, we're using DBR 13.3 (no Docker) as general purpose cluster and init the cluster using the following init script:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#!/usr/bin/env bash&lt;BR /&gt;export DEBIAN_FRONTEND=noninteractive&lt;BR /&gt;set -euxo pipefail&lt;/P&gt;&lt;P&gt;if [[ $DB_IS_DRIVER = "TRUE" ]]; then&lt;BR /&gt;echo "I am driver"&lt;BR /&gt;else&lt;BR /&gt;echo "I am executor"&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;curl "&lt;A href="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" target="_blank"&gt;https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&lt;/A&gt;" -o "awscliv2.zip"&lt;BR /&gt;unzip -q awscliv2.zip&lt;BR /&gt;./aws/install&lt;BR /&gt;rm -rf awscliv2.zip aws&lt;/P&gt;&lt;P&gt;aws s3 cp "s3://constructor-analytics-data/deploy/dp_release/${MODE}/latest/dp_requirements.txt" /tmp/all_requirements.txt&lt;/P&gt;&lt;P&gt;/databricks/python/bin/pip install -U pip wheel&lt;BR /&gt;/databricks/python/bin/pip install --no-cache-dir --no-deps -r /tmp/requirements.txt&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;&lt;BR /&gt;The init script, in particular, install boto3==1.29.7 (not &lt;SPAN&gt;boto3==&lt;/SPAN&gt;1.24.28 from vanilla distribution&amp;nbsp;&lt;A href="https://docs.databricks.com/en/release-notes/runtime/13.3lts.html" target="_blank"&gt;https://docs.databricks.com/en/release-notes/runtime/13.3lts.html&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;When there's any OOM happening on the Python side, the driver doesn't restart the node, but (apparently) the Python interpreter restarts.&lt;BR /&gt;&lt;BR /&gt;After it restarts, boto3 stops working, any S3 operation ends with `&lt;SPAN&gt;An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied`. The reason is that boto3 installation &lt;EM&gt;changes &lt;/EM&gt;(screenshot).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Note that&amp;nbsp;service-2.json was absent before the OOM but it appeared after. The time of creation is 6 minutes earlier that nearby files, so I suspect this&amp;nbsp;service-2.json was somehow taken from older botocore. This file is used by botocore to construct HTTP API requests from Python calls, and when this directory gets corrupted, boto3 stops working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Why this file appears suddenly in the botocore library files? Why other files didn't change? What am I doing wrong here?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 17:22:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/corrupted-python-installation-on-python-restart-on-dbr-13-3/m-p/61502#M6604</guid>
      <dc:creator>ivanychev</dc:creator>
      <dc:date>2024-02-22T17:22:42Z</dc:date>
    </item>
  </channel>
</rss>

