<?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 do I get files into /FileStore to be accessed with /files from within my notebooks? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30685#M22269</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello Pls help (Not an Answer),&lt;/P&gt;
&lt;P&gt;How do I download complete csv (&amp;gt;1000) result file in FileStore unto my laptop?&lt;/P&gt;
&lt;P&gt;I was trying to follow this instruction set SQL tutorial (Download All SQL - scala)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693f000007OrmnAAC"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2544i5DF61C6E9EFD3F38/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693f000007OrmnAAC" alt="0693f000007OrmnAAC" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2016 06:00:58 GMT</pubDate>
    <dc:creator>easimadi</dc:creator>
    <dc:date>2016-09-14T06:00:58Z</dc:date>
    <item>
      <title>How do I get files into /FileStore to be accessed with /files from within my notebooks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30682#M22266</link>
      <description />
      <pubDate>Thu, 26 Feb 2015 01:27:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30682#M22266</guid>
      <dc:creator>cfregly</dc:creator>
      <dc:date>2015-02-26T01:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get files into /FileStore to be accessed with /files from within my notebooks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30683#M22267</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;For context, DBFS exposes a special location called &lt;PRE&gt;&lt;CODE&gt;/FileStore&lt;/CODE&gt;&lt;/PRE&gt;as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(dbutils.fs.ls("/FileStore"))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This location can be accessed by HTML, JavaScript, and CSS at its equivalent &lt;PRE&gt;&lt;CODE&gt;/files&lt;/CODE&gt;&lt;/PRE&gt;as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;script src="/files/..."/&amp;gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In order to get assets into &lt;PRE&gt;&lt;CODE&gt;dbfs:/FileStore&lt;/CODE&gt;&lt;/PRE&gt;, you can first copy it locally from a url as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import sys.process._ 
"wget -P /tmp &lt;A href="http://d3js.org/d3.v2.min.js&amp;quot;" target="test_blank"&gt;http://d3js.org/d3.v2.min.js"&lt;/A&gt;; !!&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can verify that this file was downloaded as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(dbutils.fs.ls("file:/tmp/d3.v2.min.js"))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Using &lt;PRE&gt;&lt;CODE&gt;file:/&lt;/CODE&gt;&lt;/PRE&gt; with DBFS accesses the local filesystem.&lt;/P&gt;&lt;P&gt;Then use dbutils to copy the local file into the mount as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.mkdirs("/FileStore/customjs") 
dbutils.fs.cp("file:/tmp/d3.v2.min.js", "/FileStore/customjs/d3.v2.min.js")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can verify that the file was copied as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(dbutils.fs.ls("/FileStore/customjs"))
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This newly-downloaded JavaScript file can now be accessed from HTML as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;script src="/files/customjs/d3.vs.min.js"/&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Feb 2015 01:27:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30683#M22267</guid>
      <dc:creator>cfregly</dc:creator>
      <dc:date>2015-02-26T01:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get files into /FileStore to be accessed with /files from within my notebooks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30684#M22268</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;One follow on question. Is it possible to make a resource public.&lt;/P&gt;
&lt;P&gt;I am generating a html file which I would like to be available to anyone. Is it possible to "publish" this html page like I have published a dashboard. I can access it when I log into my databricks account but I would like a public URL with no login required.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 00:30:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30684#M22268</guid>
      <dc:creator>nick1868</dc:creator>
      <dc:date>2016-09-05T00:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get files into /FileStore to be accessed with /files from within my notebooks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30685#M22269</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello Pls help (Not an Answer),&lt;/P&gt;
&lt;P&gt;How do I download complete csv (&amp;gt;1000) result file in FileStore unto my laptop?&lt;/P&gt;
&lt;P&gt;I was trying to follow this instruction set SQL tutorial (Download All SQL - scala)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693f000007OrmnAAC"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2544i5DF61C6E9EFD3F38/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693f000007OrmnAAC" alt="0693f000007OrmnAAC" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 06:00:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-files-into-filestore-to-be-accessed-with-files-from/m-p/30685#M22269</guid>
      <dc:creator>easimadi</dc:creator>
      <dc:date>2016-09-14T06:00:58Z</dc:date>
    </item>
  </channel>
</rss>

