<?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: Error Handling for Web Data Retrieval and Storage in Databricks UNITY Clusters in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/error-handling-for-web-data-retrieval-and-storage-in-databricks/m-p/60353#M2566</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/18143"&gt;@nidhin&lt;/a&gt;&amp;nbsp;, Good Day!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason behind the below error while trying to access the external dbfs mount file using "with open" is that you are using a shared access mode cluster.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;'FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/mnt/raw/processing/facts/acc/dataacc.json&lt;/LI-CODE&gt;
&lt;P&gt;This is a known limitation for Shared Clusters, where /dbfs path is not accessible. You can try using a single-user cluster instead to access /dbfs which supports UC.&lt;/P&gt;
&lt;P&gt;Please refer:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/clusters/configure.html#shared-access-mode-limitations" target="_blank"&gt;https://docs.databricks.com/clusters/configure.html#shared-access-mode-limitations&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dbfs/unity-catalog.html#how-does-dbfs-work-in-shared-access-mode" target="_blank"&gt;https://docs.databricks.com/en/dbfs/unity-catalog.html#how-does-dbfs-work-in-shared-access-mode&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And we also have a preview feature 'Improved Shared Clusters' that addresses some of the limitations of Shared Clusters.&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and leave a like if this information is useful, followups are appreciated.&lt;BR /&gt;Kudos&lt;BR /&gt;Ayushi&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 06:22:20 GMT</pubDate>
    <dc:creator>Ayushi_Suthar</dc:creator>
    <dc:date>2024-02-16T06:22:20Z</dc:date>
    <item>
      <title>Error Handling for Web Data Retrieval and Storage in Databricks UNITY Clusters</title>
      <link>https://community.databricks.com/t5/get-started-discussions/error-handling-for-web-data-retrieval-and-storage-in-databricks/m-p/55048#M1958</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The following code works well in a normal Databricks cluster, where it passes a null JSON and retrieves content from the web link. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, in a Unity cluster, it produces the following error: 'FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/mnt/raw/processing/facts/acc/dataacc.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;import requests&lt;/P&gt;&lt;P&gt;data1 = requests.post('&lt;A href="https://weblink" target="_blank"&gt;https://weblink&lt;/A&gt;', json={})&lt;/P&gt;&lt;P&gt;with open('/dbfs/mnt/raw/processing/facts/acc/dataacc.json', mode='wb') as dataFile:&lt;BR /&gt;dataFile.write(data1.content)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why does it create a write error&amp;nbsp; when using unity cluster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 11:49:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/error-handling-for-web-data-retrieval-and-storage-in-databricks/m-p/55048#M1958</guid>
      <dc:creator>nidhin</dc:creator>
      <dc:date>2023-12-11T11:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling for Web Data Retrieval and Storage in Databricks UNITY Clusters</title>
      <link>https://community.databricks.com/t5/get-started-discussions/error-handling-for-web-data-retrieval-and-storage-in-databricks/m-p/60353#M2566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/18143"&gt;@nidhin&lt;/a&gt;&amp;nbsp;, Good Day!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason behind the below error while trying to access the external dbfs mount file using "with open" is that you are using a shared access mode cluster.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;'FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/mnt/raw/processing/facts/acc/dataacc.json&lt;/LI-CODE&gt;
&lt;P&gt;This is a known limitation for Shared Clusters, where /dbfs path is not accessible. You can try using a single-user cluster instead to access /dbfs which supports UC.&lt;/P&gt;
&lt;P&gt;Please refer:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/clusters/configure.html#shared-access-mode-limitations" target="_blank"&gt;https://docs.databricks.com/clusters/configure.html#shared-access-mode-limitations&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dbfs/unity-catalog.html#how-does-dbfs-work-in-shared-access-mode" target="_blank"&gt;https://docs.databricks.com/en/dbfs/unity-catalog.html#how-does-dbfs-work-in-shared-access-mode&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And we also have a preview feature 'Improved Shared Clusters' that addresses some of the limitations of Shared Clusters.&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and leave a like if this information is useful, followups are appreciated.&lt;BR /&gt;Kudos&lt;BR /&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 06:22:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/error-handling-for-web-data-retrieval-and-storage-in-databricks/m-p/60353#M2566</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2024-02-16T06:22:20Z</dc:date>
    </item>
  </channel>
</rss>

