<?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: upload local files into DBFS in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29309#M21053</link>
    <description>&lt;P&gt;Python 2.7:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import urllib.request
urllib.urlretrieve("https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip","/tmp/chris_data.zip") dbutils.fs.mv("file:/tmp/chris_data.zip", "dbfs:/data/chris_data.zip")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Python 3.x:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;import urllib.request&lt;/LI&gt;&lt;LI&gt;urllib.request.urlretrieve("&lt;A href="https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip" alt="https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip" target="_blank"&gt;https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip&lt;/A&gt;","/tmp/chris_data.zip")&lt;/LI&gt;&lt;LI&gt;dbutils.fs.mv("file:/tmp/chris_data.zip","dbfs:/data/chris_data.zip")&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 16:07:08 GMT</pubDate>
    <dc:creator>sushrutt_12</dc:creator>
    <dc:date>2018-03-15T16:07:08Z</dc:date>
    <item>
      <title>upload local files into DBFS</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29307#M21051</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am using Databricks Notebook Community Edition (2.36) and want to upload a local file into DBFS. Is there any simple Hadoop commands like "hadoop fs -put ..."? Any help would be appreciated.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 07:22:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29307#M21051</guid>
      <dc:creator>Young_TackPark</dc:creator>
      <dc:date>2017-01-07T07:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: upload local files into DBFS</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29308#M21052</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You could create a table from a local file ( if you have some sort of structured data ). You just have to choose File as the data source. &lt;/P&gt;
&lt;P&gt;If you could make it available in a url that could be accessed from anywhere ( even hosting the file in a local webserver ) - you could use &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%fs wget &lt;A href="http://filename" target="test_blank"&gt;http://filename&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and use &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.cp &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to copy from "file:/path" to "dbfs:/path"&lt;/P&gt;
&lt;P&gt;check &lt;A href="https://docs.databricks.com/user-guide/dbfs-databricks-file-system.html" target="test_blank"&gt;https://docs.databricks.com/user-guide/dbfs-databricks-file-system.html&lt;/A&gt; for more details&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 15:51:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29308#M21052</guid>
      <dc:creator>kutt4n</dc:creator>
      <dc:date>2017-01-08T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: upload local files into DBFS</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29309#M21053</link>
      <description>&lt;P&gt;Python 2.7:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import urllib.request
urllib.urlretrieve("https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip","/tmp/chris_data.zip") dbutils.fs.mv("file:/tmp/chris_data.zip", "dbfs:/data/chris_data.zip")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Python 3.x:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;import urllib.request&lt;/LI&gt;&lt;LI&gt;urllib.request.urlretrieve("&lt;A href="https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip" alt="https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip" target="_blank"&gt;https://github.com/sushrutt12/DataSets/blob/master/final_chris.zip&lt;/A&gt;","/tmp/chris_data.zip")&lt;/LI&gt;&lt;LI&gt;dbutils.fs.mv("file:/tmp/chris_data.zip","dbfs:/data/chris_data.zip")&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:07:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-local-files-into-dbfs/m-p/29309#M21053</guid>
      <dc:creator>sushrutt_12</dc:creator>
      <dc:date>2018-03-15T16:07:08Z</dc:date>
    </item>
  </channel>
</rss>

