<?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: Copy Local file using a Shared Cluster in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60074#M31584</link>
    <description>&lt;P&gt;For reference when doing this on a single user (personal) cluster - the file is store in:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;/databricks/driver/logs.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which has no issue accessing and copying to dbfs after using the dbutil commands&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 17:34:28 GMT</pubDate>
    <dc:creator>Kaizen</dc:creator>
    <dc:date>2024-02-13T17:34:28Z</dc:date>
    <item>
      <title>Copy Local file using a Shared Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60073#M31583</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am saving some files locally on my cluster and moving them after my job. These are log files of my process so I cant directly reference a DBFS location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the dbutils.fs.cp command does not work on the shared cluster. This does however work on a individual cluster. I believe this is related to how the clusters are split amongst users.&lt;/P&gt;&lt;P&gt;File location: "/home/spark-daed4064-233f-446c-b9f2-5b/log.txt''&lt;/P&gt;&lt;P&gt;Copy command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os 

#path gets set to /home/spark-daed4064-233f-446c-b9f2-5b/ 
path = os.getcwd() 

new_path = f"{path}/logs.txt" 

# output printed out -&amp;gt; /home/spark-4c17311c-654a-4c71-b551-2e/logs.txt 
print(new_path) 

dbutils.fs.cp(new_path, "dbfs:/databricks/scripts/logs.txt")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:27:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60073#M31583</guid>
      <dc:creator>Kaizen</dc:creator>
      <dc:date>2024-02-13T17:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Local file using a Shared Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60074#M31584</link>
      <description>&lt;P&gt;For reference when doing this on a single user (personal) cluster - the file is store in:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;/databricks/driver/logs.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which has no issue accessing and copying to dbfs after using the dbutil commands&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:34:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60074#M31584</guid>
      <dc:creator>Kaizen</dc:creator>
      <dc:date>2024-02-13T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Local file using a Shared Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60239#M31619</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt; - thanks for mentioning that. The issue is accessing the local file on the cluster not the dbfs location.&lt;/P&gt;&lt;P&gt;But it is still like you said a cluster config issue:&lt;BR /&gt;&lt;SPAN&gt;org.apache.spark.api.python.PythonSecurityException: Path 'file:/home/spark-c989284b-a795-4ca0-858e-84/logs.txt' uses an untrusted filesystem 'com.databricks.backend.daemon.driver.WorkspaceLocalFileSystem'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 16:25:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/copy-local-file-using-a-shared-cluster/m-p/60239#M31619</guid>
      <dc:creator>Kaizen</dc:creator>
      <dc:date>2024-02-14T16:25:51Z</dc:date>
    </item>
  </channel>
</rss>

