<?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: Read data shared using Delta Sharing open sharing (for recipients) FileNotFoundError in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70674#M34118</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105721"&gt;@WarmCat&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As it states in the documentation, try reading the file from&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;/dbfs/&amp;lt;dbfs-path&amp;gt;/config.share&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;not from&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;dbfs:/&amp;lt;dbfs-path&amp;gt;/config.share&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 07:33:38 GMT</pubDate>
    <dc:creator>daniel_sahal</dc:creator>
    <dc:date>2024-05-27T07:33:38Z</dc:date>
    <item>
      <title>Read data shared using Delta Sharing open sharing (for recipients) FileNotFoundError</title>
      <link>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70624#M34110</link>
      <description>&lt;P&gt;I'm using the docs here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/data-sharing/read-data-open.html#store-creds" target="_blank"&gt;https://docs.databricks.com/en/data-sharing/read-data-open.html#store-creds&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However I am unable to read the stored file which is sucessfully created with the following code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%scala
dbutils.fs.put("dbfs:/FileStore/extraction/config.share","""
{"shareCredentialsVersion":1,"bearerToken":"XXXXXXXXXXXXXXXXXX","endpoint":"https://ukwest.azuredatabricks.net/api/2.0/delta-sharing/metastores/XXXXXXXXXXXXXXXXXX","expirationTime":"9999-12-31T23:59:59.999Z"}
""")&lt;/LI-CODE&gt;&lt;P&gt;When I attempt to read back the file with the following example code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import delta_sharing
client = delta_sharing.SharingClient(f"dbfs:/FileStore/extraction/config.share")
client.list_all_tables()&lt;/LI-CODE&gt;&lt;P&gt;The following error is received:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;FileNotFoundError: [Errno 2] No such file or directory: '/databricks/driver/dbfs:/FileStore/extraction/config.share'
File &amp;lt;command-3352291941134744&amp;gt;, line 2
      1 import delta_sharing
----&amp;gt; 2 client = delta_sharing.SharingClient(f"dbfs:/FileStore/extraction/config.share")
      3 client.list_all_tables()
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-fe1622b9-cf42-4ef3-9ffc-a7ec8a5b3a2e/lib/python3.11/site-packages/fsspec/implementations/local.py:360, in LocalFileOpener._open(self)
    358 if self.f is None or self.f.closed:
    359     if self.autocommit or "w" not in self.mode:
--&amp;gt; 360         self.f = open(self.path, mode=self.mode)
    361         if self.compression:
    362             compress = compr[self.compression]&lt;/LI-CODE&gt;&lt;P&gt;The file browser in Catalog, DBFS shows that the file is present.&lt;BR /&gt;What is going on here? Also why is the documentation incorrect?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 12:27:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70624#M34110</guid>
      <dc:creator>WarmCat</dc:creator>
      <dc:date>2024-05-25T12:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read data shared using Delta Sharing open sharing (for recipients) FileNotFoundError</title>
      <link>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70674#M34118</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105721"&gt;@WarmCat&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As it states in the documentation, try reading the file from&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;/dbfs/&amp;lt;dbfs-path&amp;gt;/config.share&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;not from&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;dbfs:/&amp;lt;dbfs-path&amp;gt;/config.share&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 07:33:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70674#M34118</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2024-05-27T07:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read data shared using Delta Sharing open sharing (for recipients) FileNotFoundError</title>
      <link>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70700#M34130</link>
      <description>&lt;P&gt;Thanks Daniel, but that does not work either.&lt;BR /&gt;The only thing that allowed progress was to use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;client = delta_sharing.SharingClient(f"file:///tmp/config.share")&lt;/LI-CODE&gt;&lt;P&gt;I gave up and installed Apache Spark locally in a venv for now, and will be using AWS going forward.&lt;/P&gt;&lt;P&gt;Not a great experience with Databricks, for example even trying to preview this post results in an error!&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks for your efforts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 10:01:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-data-shared-using-delta-sharing-open-sharing-for-recipients/m-p/70700#M34130</guid>
      <dc:creator>WarmCat</dc:creator>
      <dc:date>2024-05-27T10:01:54Z</dc:date>
    </item>
  </channel>
</rss>

