<?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: How to download a file from dbfs to my local computer filesystem? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29164#M20917</link>
    <description>&lt;P&gt;Also simply CLI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBFS CLI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 10:27:43 GMT</pubDate>
    <dc:creator>Eve</dc:creator>
    <dc:date>2019-03-18T10:27:43Z</dc:date>
    <item>
      <title>How to download a file from dbfs to my local computer filesystem?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29161#M20914</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have run the WordCount program and have saved the output into a directory as follows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;counts.saveAsTextFile("/users/data/hobbit-out1")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;subsequently I check that the output directory contains the expected number of files&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%fs ls /users/data/hobbit-out1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I see that three files exist&lt;/P&gt;dbfs:/users/data/hobbit-out1/_SUCCESS_SUCCESSdbfs:/users/data/hobbit-out1/part-00000part-00000dbfs:/users/data/hobbit-out1/part-00001part-00001
&lt;P&gt;now I want to get the file dbfs:/users/data/hobbit-out1/part-00000 into my local computer.&lt;/P&gt;
&lt;P&gt;i understand that to access these files i have to point my browser to an URL like &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://community.cloud.databricks.com/files/my-stuff/my-file.txt?o=######" target="test_blank"&gt;https://community.cloud.databricks.com/files/my-stuff/my-file.txt?o=######&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in my notebook URL i note that the URL contains o=7892876048313913 and so the URL to my file should be &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://community.cloud.databricks.com/files/users/data/hobbit-out1/part-00000?o=7892876048313913" target="test_blank"&gt;https://community.cloud.databricks.com/files/users/data/hobbit-out1/part-00000?o=7892876048313913&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but this is leading me to 404 file not found error. &lt;/P&gt;
&lt;P&gt;Can someone please tell me what is my error? Either in the approach or in the construction of the URL.&lt;/P&gt;
&lt;P&gt;I have not yet tried the S3 route and but will try that if that is the ONLY way to get files out of dbfs.&lt;/P&gt;
&lt;P&gt;Thanks for any help or guidance.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 10:23:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29161#M20914</guid>
      <dc:creator>PrithwisMukerje</dc:creator>
      <dc:date>2017-06-05T10:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to download a file from dbfs to my local computer filesystem?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29162#M20915</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You'll have to use the FileStore.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/user-guide/advanced/filestore.html" target="test_blank"&gt;https://docs.databricks.com/user-guide/advanced/filestore.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Your mistake is that you didn't put it at this proper location. You put it in a different directory. You have to put it /FileStore/&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 15:14:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29162#M20915</guid>
      <dc:creator>Bill_Chambers</dc:creator>
      <dc:date>2017-06-05T15:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to download a file from dbfs to my local computer filesystem?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29163#M20916</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Actually, you do not have to put it in FileStore. You can use other folders like mnt as well. However if it is stored in the mnt folder, you will need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;A href="https://community.cloud.databricks.com/dbfs/mnt/blob/&amp;lt;file_name&amp;gt;.csv?o=&amp;lt;your_number_here&amp;gt;" target="test_blank"&gt;https://community.cloud.databricks.com/dbfs/mnt/blob/&amp;lt;file_name&amp;gt;.csv?o=&amp;lt;your_number_here&amp;gt;&lt;/A&gt;;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Note that this will prompt you for your login and password, but once you enter this, the download should be seamless.  
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:46:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29163#M20916</guid>
      <dc:creator>LiNKArsIdeni</dc:creator>
      <dc:date>2019-03-15T03:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to download a file from dbfs to my local computer filesystem?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29164#M20917</link>
      <description>&lt;P&gt;Also simply CLI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBFS CLI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 10:27:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29164#M20917</guid>
      <dc:creator>Eve</dc:creator>
      <dc:date>2019-03-18T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to download a file from dbfs to my local computer filesystem?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29165#M20918</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;By far this seems the most straightforward result. &lt;/P&gt;
&lt;P&gt;databricks fs cp &amp;lt;file_to_download&amp;gt; &amp;lt;local_filename&amp;gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 22:32:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-download-a-file-from-dbfs-to-my-local-computer-filesystem/m-p/29165#M20918</guid>
      <dc:creator>demongolem</dc:creator>
      <dc:date>2020-11-18T22:32:16Z</dc:date>
    </item>
  </channel>
</rss>

