<?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: Open sharing protocol in Datbricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/50806#M28894</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91173"&gt;@dbx_deltaSharin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;When querying the individual partitions, the files are being read by using an S3 access point location while it is using the actual S3 name&lt;STRONG&gt;&amp;nbsp;when reading the table as a whole. This information is fetched from the table metadata itself.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;It appears, in the source metastore, the table metadata is pointed to the s3 location where as the partitions are defined with the s3 access point location.&lt;/P&gt;
&lt;P class=""&gt;Please review the table and partition metadata at the source table. Update the table metadata and point the table location to the s3 access point similar to what's defined for the partitions.&lt;/P&gt;
&lt;P class=""&gt;Also, please review the IAM role which was used, Is it defined to allow access with both the s3 name as well as the s3 access point name? Can we add if one is missing? If this is not in the IAM role, the restriction to the actual S3 bucket from outside may be on a higher level (eg: AWS SCP policies).&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 09:12:31 GMT</pubDate>
    <dc:creator>Manisha_Jena</dc:creator>
    <dc:date>2023-11-10T09:12:31Z</dc:date>
    <item>
      <title>Open sharing protocol in Datbricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/48835#M28395</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I utilize an Azure Databricks notebook to access Delta Sharing tables, employing the open sharing protocol. I've successfully uploaded the 'config.share' file to dbfs. Upon executing the commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;client = delta_sharing.SharingClient(f"/dbfs/path/config.share")
client.list_all_tables()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I can observe all table names and schemas. However, when I attempt to display the data using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;spark.read.format("deltaSharing")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encounter an error labeled 'error content'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FileReadException: Error while reading file delta-sharing:/dbfsXXXX.
Caused by: IOException: java.util.concurrent.ExecutionException: io.delta.sharing.spark.util.UnexpectedHttpStatus: HTTP request failed with status: HTTP/1.1 403 This request is not authorized to perform this operation. {"error":{"code":"AuthorizationFailure","message":"This request is not authorized to perform this operation.\nRequestId:4b5091fb-e01f-004e-1391-fa30ed000000\nTime:2023-10-09T09:16:31.5069373Z"}}
Caused by: ExecutionException: io.delta.sharing.spark.util.UnexpectedHttpStatus: HTTP request failed with status: HTTP/1.1 403 This request is not authorized to perform this operation. {"error":{"code":"AuthorizationFailure","message":"This request is not authorized to perform this operation.\nRequestId:4b5091fb-e01f-004e-1391-fa30ed000000\nTime:2023-10-09T09:16:31.5069373Z"}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Details I use Databricks standard version and Runtime&amp;nbsp;&lt;SPAN&gt;13.1 ML.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced the same error?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 09:46:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/48835#M28395</guid>
      <dc:creator>dbx_deltaSharin</dc:creator>
      <dc:date>2023-10-10T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open sharing protocol in Datbricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/48921#M28423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt; for responding to my question. For additional information, the 'config.share' file follows this format:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"shareCredentialsVersion":1,"bearerToken":"valuexxxx","endpoint":"endpointUrl","expirationTime":"expirationTimeValue"}&lt;/LI-CODE&gt;&lt;P&gt;The data shared from another Databricks account. Therefore, I'm wondering how it could be an authorization or permission issue, especially since I can already observe all table names and schemas using the same 'config.share' file.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:41:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/48921#M28423</guid>
      <dc:creator>dbx_deltaSharin</dc:creator>
      <dc:date>2023-10-11T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open sharing protocol in Datbricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/50806#M28894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91173"&gt;@dbx_deltaSharin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;When querying the individual partitions, the files are being read by using an S3 access point location while it is using the actual S3 name&lt;STRONG&gt;&amp;nbsp;when reading the table as a whole. This information is fetched from the table metadata itself.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;It appears, in the source metastore, the table metadata is pointed to the s3 location where as the partitions are defined with the s3 access point location.&lt;/P&gt;
&lt;P class=""&gt;Please review the table and partition metadata at the source table. Update the table metadata and point the table location to the s3 access point similar to what's defined for the partitions.&lt;/P&gt;
&lt;P class=""&gt;Also, please review the IAM role which was used, Is it defined to allow access with both the s3 name as well as the s3 access point name? Can we add if one is missing? If this is not in the IAM role, the restriction to the actual S3 bucket from outside may be on a higher level (eg: AWS SCP policies).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:12:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/open-sharing-protocol-in-datbricks-notebook/m-p/50806#M28894</guid>
      <dc:creator>Manisha_Jena</dc:creator>
      <dc:date>2023-11-10T09:12:31Z</dc:date>
    </item>
  </channel>
</rss>

