<?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: File not found error when trying to read json file from aws s3 using with open. in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/67799#M7190</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/103581"&gt;@Nagarathna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I just tried it on a shared cluster and did not face any issue. What is the exact error that you are facing? Complete stacktrace might help. Just to confirm are you accessing the "&lt;SPAN&gt;/dbfs/mnt/datalake/input.json" from the same workspace when trying out the cluster modes?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-01 at 15.34.30.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7343iC3B321D30C89789E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-05-01 at 15.34.30.png" alt="Screenshot 2024-05-01 at 15.34.30.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 10:07:24 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2024-05-01T10:07:24Z</dc:date>
    <item>
      <title>File not found error when trying to read json file from aws s3 using with open.</title>
      <link>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/66242#M7187</link>
      <description>&lt;P&gt;I am trying to reading json from aws s3 using &lt;EM&gt;with open&lt;/EM&gt;&amp;nbsp;in databricks notebook using shared cluster.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message&lt;/STRONG&gt;:No such file or directory:'/dbfs/mnt/datalake/input_json_schema.json'&lt;/P&gt;&lt;P&gt;In single instance cluster the above error is not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 07:36:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/66242#M7187</guid>
      <dc:creator>Nagarathna</dc:creator>
      <dc:date>2024-04-15T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: File not found error when trying to read json file from aws s3 using with open.</title>
      <link>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/66322#M7188</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;Please consider to use Unity Catalog with &lt;A href="https://docs.databricks.com/en/connect/unity-catalog/volumes.html" target="_self"&gt;Volumes&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You'll find a quickstart notebook here :&amp;nbsp;&lt;A href="https://docs.databricks.com/en/connect/unity-catalog/volumes.html#tutorial-unity-catalog-volumes-notebook" target="_blank"&gt;https://docs.databricks.com/en/connect/unity-catalog/volumes.html#tutorial-unity-catalog-volumes-notebook&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 12:05:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/66322#M7188</guid>
      <dc:creator>artsheiko</dc:creator>
      <dc:date>2024-04-16T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: File not found error when trying to read json file from aws s3 using with open.</title>
      <link>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/66388#M7189</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Thanks for suggesting this approach.&lt;/P&gt;&lt;P&gt;But I want to know why the json file cannot be read from AWS S3 bucket using "with open" in python with shared instance mode cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works perfectly fine if I'm using a single instance mode cluster.&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;with open("/dbfs/mnt/datalake/input.json","r") as f:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data = f.read()&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 05:12:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/66388#M7189</guid>
      <dc:creator>Nagarathna</dc:creator>
      <dc:date>2024-04-17T05:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: File not found error when trying to read json file from aws s3 using with open.</title>
      <link>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/67799#M7190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/103581"&gt;@Nagarathna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I just tried it on a shared cluster and did not face any issue. What is the exact error that you are facing? Complete stacktrace might help. Just to confirm are you accessing the "&lt;SPAN&gt;/dbfs/mnt/datalake/input.json" from the same workspace when trying out the cluster modes?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-01 at 15.34.30.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7343iC3B321D30C89789E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-05-01 at 15.34.30.png" alt="Screenshot 2024-05-01 at 15.34.30.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 10:07:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/file-not-found-error-when-trying-to-read-json-file-from-aws-s3/m-p/67799#M7190</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-05-01T10:07:24Z</dc:date>
    </item>
  </channel>
</rss>

