<?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: Permission issue for pandas to read local files in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131891#M49285</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/175193"&gt;@liu&lt;/a&gt;&amp;nbsp;is there anything preventing you from moving this file into a Volume on the Unity Catalog &amp;amp; then reading it from there?&lt;BR /&gt;&lt;BR /&gt;Based on your original message, the "permission" message is making me feel like it's having an issue with opening the file; perhaps it's "in use" somehow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&lt;/P&gt;</description>
    <pubDate>Sun, 14 Sep 2025 11:18:53 GMT</pubDate>
    <dc:creator>BS_THE_ANALYST</dc:creator>
    <dc:date>2025-09-14T11:18:53Z</dc:date>
    <item>
      <title>Permission issue for pandas to read local files</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131615#M49161</link>
      <description>&lt;P&gt;I can use pandas to read local files in a notebook, such as those located in tmp.However, when I run two consecutive notebooks within the same job and read files with pandas in both, I encounter a permission error in the second notebook stating that I do not have permission.Could it be that my operations reading from or writing to tables altered the environment?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 06:27:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131615#M49161</guid>
      <dc:creator>liu</dc:creator>
      <dc:date>2025-09-11T06:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Permission issue for pandas to read local files</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131621#M49163</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/175193"&gt;@liu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The fact that you're getting a permissions issue when trying to access the same location in different notebooks is indeed confusing. Here's my take on what could be the cause of this issue:&lt;/P&gt;&lt;P&gt;Jobs in databricks default to creating their own short-lived clusters. These are effectively temporary clusters, created specifically to enable a single job or task to run. If each task/ notebook within your job has its own ephemeral cluster, they also have some separate resources, i.e separate temp environments. I would then assume that when your second notebook tries to access the temp directory belonging to your first notebook, it runs into a permissions issue. Equally, it could be the case that the second notebook simply can't find the file path, and the issue simply manifests as a "permissions" issue.&lt;BR /&gt;&lt;BR /&gt;The way to get around this would be to use a persistent, all-purpose compute resource, or write to non-local (global) file paths. For more information on compute resources, the following link may be useful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/compute" target="_blank"&gt;https://docs.databricks.com/aws/en/jobs/compute&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know if you find this helpful - feel free to ask any further questions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards - Pilsner&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 07:07:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131621#M49163</guid>
      <dc:creator>Pilsner</dc:creator>
      <dc:date>2025-09-11T07:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Permission issue for pandas to read local files</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131750#M49223</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/170791"&gt;@Pilsner&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thank you for your reply&lt;/P&gt;&lt;P&gt;The situation is slightly different,&lt;BR /&gt;I transferred the file from the SFTP system to the local path of Databricks, read the file into Pandas, and then passed it to Spark.&lt;BR /&gt;In this job, although the two notebooks access the same local path, they are not operating on the same file.&lt;BR /&gt;If two notebooks are executed separately, there will be no issue, but if they are put into one job, it will not work.&lt;BR /&gt;Sometimes, when executing the same notebook manually, it will also report a permission error on the second attempt.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 09:22:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131750#M49223</guid>
      <dc:creator>liu</dc:creator>
      <dc:date>2025-09-12T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Permission issue for pandas to read local files</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131891#M49285</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/175193"&gt;@liu&lt;/a&gt;&amp;nbsp;is there anything preventing you from moving this file into a Volume on the Unity Catalog &amp;amp; then reading it from there?&lt;BR /&gt;&lt;BR /&gt;Based on your original message, the "permission" message is making me feel like it's having an issue with opening the file; perhaps it's "in use" somehow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 11:18:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-issue-for-pandas-to-read-local-files/m-p/131891#M49285</guid>
      <dc:creator>BS_THE_ANALYST</dc:creator>
      <dc:date>2025-09-14T11:18:53Z</dc:date>
    </item>
  </channel>
</rss>

