<?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: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12372#M7187</link>
    <description>&lt;P&gt;so it seems that in community edition you can not direct access filesystem. You have access only to dbfs storage but you need to load there uncompressed object. So you need everywhere  to prefix with dbfs:/ if it is not work for some function it will not work. As a last chance you can give a try like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    from zipfile import *
     
    with ZipFile("dbfs:/FileStore/tables/flight_data.zip", "r") as zipObj:
        zipObj.extractall()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 08:50:47 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2021-10-28T08:50:47Z</dc:date>
    <item>
      <title>FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12366#M7181</link>
      <description>&lt;P&gt;I am new to learning Spark and working on some practice; I have uploaded a zip file in DBFS /FileStore/tables directory and trying to run a python code to unzip the file; The python code is as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;from zipfile import *&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;with ZipFile("/FileStore/tables/flight_data.zip", "r") as zipObj:&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;zipObj.extractall()&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It throws an error:&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;U&gt;FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'&lt;/U&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i check manually and also through the code &lt;B&gt;&lt;I&gt;dbutils.fs.ls("/FileStore/tables/") &lt;/I&gt;&lt;/B&gt;it returns&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;Out[13]: [ FileInfo(path='dbfs:/FileStore/tables/flight_data.zip', name='flight_data.zip', size=59082358)]&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please review and advise; I am using community edition to run this on cluster with configuration: &lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;Data Bricks Runtime Version 8.3 (includes Apache Spark 3.1.1, Scala 2.12)&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:14:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12366#M7181</guid>
      <dc:creator>Data_Engineer_3</dc:creator>
      <dc:date>2021-10-27T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12368#M7183</link>
      <description>&lt;P&gt;It is on dbfs mount so in most scenarios you should prefix everything with /dbfs (or dbfs:/ in databricks native functions, in many is not even needed as they handle only dbfs like dbutils). So please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from zipfile import *
&amp;nbsp;
with ZipFile("/dbfs/FileStore/tables/flight_data.zip", "r") as zipObj:
    zipObj.extractall()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:16:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12368#M7183</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-10-27T17:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12369#M7184</link>
      <description>&lt;P&gt;​@Hubert Dudek​&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Hello Sir, &lt;/P&gt;&lt;P&gt;I tried in the way you suggested as well.However no luck! Still gives the same error.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Goutam​&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:29:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12369#M7184</guid>
      <dc:creator>Data_Engineer_3</dc:creator>
      <dc:date>2021-10-27T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12370#M7185</link>
      <description>&lt;P&gt;Do you have maybe high-concurrency server or some limited trial version (trial/free can make problem with reading with not native libraries).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try also to explorer filesystem using shell commands by putting magic %sh in the first line in notebook to see is there /dbfs folder&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh
ls /&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:40:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12370#M7185</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-10-27T17:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12371#M7186</link>
      <description>&lt;P&gt;@Hubert Dudek​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Working in community edition; Tried with magic commands as well.No luck! It says the command is not recognized.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:48:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12371#M7186</guid>
      <dc:creator>Data_Engineer_3</dc:creator>
      <dc:date>2021-10-27T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12372#M7187</link>
      <description>&lt;P&gt;so it seems that in community edition you can not direct access filesystem. You have access only to dbfs storage but you need to load there uncompressed object. So you need everywhere  to prefix with dbfs:/ if it is not work for some function it will not work. As a last chance you can give a try like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    from zipfile import *
     
    with ZipFile("dbfs:/FileStore/tables/flight_data.zip", "r") as zipObj:
        zipObj.extractall()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:50:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12372#M7187</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-10-28T08:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12373#M7188</link>
      <description>&lt;P&gt;@Hubert Dudek​&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Hi Sir, No luck with this way also. :(.​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Thank you for all the great suggestions though.&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;​&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:20:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12373#M7188</guid>
      <dc:creator>Data_Engineer_3</dc:creator>
      <dc:date>2021-10-28T10:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12375#M7190</link>
      <description>&lt;P&gt;Hi @Goutam Pal​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you still having this issue? I think @Kaniz Fatma​&amp;nbsp; example will work great to solve your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 17:55:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12375#M7190</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2021-11-18T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12376#M7191</link>
      <description>&lt;P&gt;@Jose Gonzalez​&amp;nbsp;@Kaniz Fatma​&amp;nbsp;: The issue still persists. Please find attached the screenshot of the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Goutam Pal&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 03:10:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12376#M7191</guid>
      <dc:creator>Data_Engineer_3</dc:creator>
      <dc:date>2021-11-19T03:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12377#M7192</link>
      <description>&lt;P&gt;@Goutam Pal​&amp;nbsp;- Thank you for letting us know. I apologize about the inconvenience.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 16:47:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12377#M7192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-19T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12379#M7194</link>
      <description>&lt;P&gt;Hello Kaniz..Will try and revert you back.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 18:51:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12379#M7194</guid>
      <dc:creator>Data_Engineer_3</dc:creator>
      <dc:date>2021-12-03T18:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The data and file exists in location mentioned above</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12381#M7196</link>
      <description>&lt;P&gt;I changed the Databricks runtime​ version in cluster and it worked in my case. Thank you @Kaniz Fatma​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 19:20:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/12381#M7196</guid>
      <dc:creator>Mahima_Lalwani</dc:creator>
      <dc:date>2022-01-29T19:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/flight_data.zip'
The</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/37963#M26524</link>
      <description>&lt;P&gt;What if changing the runtime is not an option? I'm experiencing a similar issue using the following:&lt;BR /&gt;&lt;BR /&gt;%pip install -r /dbfs/path/to/file.txt&lt;/P&gt;&lt;P&gt;This worked for a while, but now I'm getting the Errno 2 mentioned above. I am still able to print the same file using dbutils.fs.head('dbfs:/path/to/file.txt')&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 15:36:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-filestore/m-p/37963#M26524</guid>
      <dc:creator>883022</dc:creator>
      <dc:date>2023-07-19T15:36:48Z</dc:date>
    </item>
  </channel>
</rss>

