<?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: Problem using dbutils to access local files in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123924#M47101</link>
    <description>&lt;P&gt;Well, it was indeed a very fundamental misunderstanding. In the UI, I had not connected to my own compute cluster, it was still running "serverless":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2025-07-03 09-36-29.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17960i924B2CE4D3CBE128/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2025-07-03 09-36-29.png" alt="Screenshot from 2025-07-03 09-36-29.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;So, I guess it's not surprising the process didn't have any privileges, even though the terminal that I spawned off did, sigh &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to help!&lt;BR /&gt;Toby&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 15:37:41 GMT</pubDate>
    <dc:creator>TobyE</dc:creator>
    <dc:date>2025-07-03T15:37:41Z</dc:date>
    <item>
      <title>Problem using dbutils to access local files</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123893#M47098</link>
      <description>&lt;P&gt;Greetings, total newbie here, please advise if this is an inappropriate forum. I'm trying to learn some basics.&lt;/P&gt;&lt;P&gt;I have tried to copy a file from the local file system onto dbfs, and while it fails in python, it succeeds in the command line. The error in python is puzzling--it appears to complain about some kind of permission.&lt;/P&gt;&lt;P&gt;Given that it works at the command line, I suspect I'm missing some very basic concept, can someone point me at a reference that I can use to fill in the blanks please?&lt;/P&gt;&lt;P&gt;The command issues are illustrated in the image. I have tried to put the text here, but the anti-injection filtering is mangling things, so it's probably broken in ways I haven't noticed:&lt;/P&gt;&lt;P&gt;dbutils.fs.cp("file:/Workspace/Users/214627-ins1@labs.webagesolutions.com/sock_data214627INS1.json", "dbfs:/sock_data214627INS1.json")&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ExecutionError: &lt;/SPAN&gt;&lt;SPAN&gt;(java.lang.SecurityException) Cannot use com.databricks.backend.daemon.driver.WorkspaceLocalFileSystem - local filesystem access is forbidden&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the command-line operations that succeed are (with extras to show that the file wasn't there before the operation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...$ databricks fs ls -l dbfs: | grep sock_data214&lt;BR /&gt;...$ databricks fs cp sock_data214627INS1.json dbfs:&lt;BR /&gt;sock_data214627INS1.json -&amp;gt; dbfs:/sock_data214627INS1.json&lt;BR /&gt;...$ databricks fs ls -l dbfs: | grep sock_data214&lt;BR /&gt;FILE 1528609 2025-07-03T13:24:47Z sock_data214627INS1.json&lt;BR /&gt;...$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any help you can offer!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Toby&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2025-07-03 07-33-30.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17954i65B87DFB44064602/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2025-07-03 07-33-30.png" alt="Screenshot from 2025-07-03 07-33-30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 13:43:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123893#M47098</guid>
      <dc:creator>TobyE</dc:creator>
      <dc:date>2025-07-03T13:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using dbutils to access local files</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123901#M47099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/173617"&gt;@TobyE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try to use compute with&amp;nbsp;&lt;STRONG&gt;Dedicated access mode&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:10:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123901#M47099</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-03T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using dbutils to access local files</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123920#M47100</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;,&amp;nbsp;thanks for replying. That doesn't appear to have changed anything. But can you give me any clue as to why that might have been expected to change things? The info I saw when creating that compute cluster seemed to indicate that file access would be more restricted, rather than less, so I think there's something more for me to learn there too.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Toby&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 15:21:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123920#M47100</guid>
      <dc:creator>TobyE</dc:creator>
      <dc:date>2025-07-03T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using dbutils to access local files</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123924#M47101</link>
      <description>&lt;P&gt;Well, it was indeed a very fundamental misunderstanding. In the UI, I had not connected to my own compute cluster, it was still running "serverless":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2025-07-03 09-36-29.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17960i924B2CE4D3CBE128/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2025-07-03 09-36-29.png" alt="Screenshot from 2025-07-03 09-36-29.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;So, I guess it's not surprising the process didn't have any privileges, even though the terminal that I spawned off did, sigh &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to help!&lt;BR /&gt;Toby&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 15:37:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-using-dbutils-to-access-local-files/m-p/123924#M47101</guid>
      <dc:creator>TobyE</dc:creator>
      <dc:date>2025-07-03T15:37:41Z</dc:date>
    </item>
  </channel>
</rss>

