<?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: Delta Sharing - Alternative to config.share in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40742#M754</link>
    <description>&lt;P&gt;Hi, You can create a secret and store the key inside it OR also you can&amp;nbsp;use a local tool to Base64-encode the contents of your JSON key file, create a secret in a Databricks-backed scope and then you can copy &amp;amp; paste the Base64-encoded text into your secret value. After that, you can reference your secret with the following Spark config of your cluster:&amp;nbsp;credentials {{secrets/&amp;lt;scope-name&amp;gt;/&amp;lt;secret-name&amp;gt;}}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tag&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078" target="_blank" rel="noopener"&gt;@Debayan&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;with your next comment, which will get me notified. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 07:29:05 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2023-08-21T07:29:05Z</dc:date>
    <item>
      <title>Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/39694#M708</link>
      <description>&lt;P&gt;I was recently given a credential file to access shared data via delta sharing. I am following the documentation from&amp;nbsp;&lt;A href="https://docs.databricks.com/en/data-sharing/read-data-open.html" target="_blank"&gt;https://docs.databricks.com/en/data-sharing/read-data-open.html&lt;/A&gt;. The documentation wants the contents of the credential file in a folder in DBFS. I would like to use&amp;nbsp;Azure Key Vault instead.&lt;/P&gt;&lt;P&gt;Therefore, instead of using (under "Step 2: Use a notebook to list and read shared tables" in the above URL):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;client = delta_sharing.SharingClient(f"/dbfs/&amp;lt;dbfs-path&amp;gt;/config.share")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;client.list_all_tables()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;credentials = dbutils.secrets.get(scope='redacted', key='redacted')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;profile = delta_sharing.protocol.DeltaSharingProfile.from_json(credentials)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;client = delta_sharing.SharingClient(profile=profile)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;client.list_all_tables()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The above works fine. I can list the tables. Now I would like to load a table using Spark. The documentation suggests using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delta_sharing.load_as_spark(f"&amp;lt;profile-path&amp;gt;#&amp;lt;share-name&amp;gt;.&amp;lt;schema-name&amp;gt;.&amp;lt;table-name&amp;gt;", version=&amp;lt;version-as-of&amp;gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But that relies on having stored the contents of the credential file in a folder in DBFS and using that path for &amp;lt;profile-path&amp;gt;. Is there an alternative way to do this with the "profile" variable I am using? By the way, the code is bold instead of formatted in code blocks because I kept getting errors that prevented me from posting.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Aug 2023 21:11:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/39694#M708</guid>
      <dc:creator>alex-syk</dc:creator>
      <dc:date>2023-08-11T21:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40742#M754</link>
      <description>&lt;P&gt;Hi, You can create a secret and store the key inside it OR also you can&amp;nbsp;use a local tool to Base64-encode the contents of your JSON key file, create a secret in a Databricks-backed scope and then you can copy &amp;amp; paste the Base64-encoded text into your secret value. After that, you can reference your secret with the following Spark config of your cluster:&amp;nbsp;credentials {{secrets/&amp;lt;scope-name&amp;gt;/&amp;lt;secret-name&amp;gt;}}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tag&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078" target="_blank" rel="noopener"&gt;@Debayan&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;with your next comment, which will get me notified. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 07:29:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40742#M754</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-21T07:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40787#M759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;, thanks for your response!&lt;BR /&gt;&lt;BR /&gt;I'm trying to understand your instructions. The content of my credential file is (I've replaced confidential information with "xyz"):&lt;BR /&gt;&lt;STRONG&gt;{"shareCredentialsVersion":1, "bearerToken":"xyz", "endpoint":"xyz", "expirationTime":"2023-09-10T04:10:49.277Z"}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I put that content in a secret in a Databricks-backed scope, and can access it:&lt;BR /&gt;&lt;STRONG&gt;credentials = dbutils.secrets.get(scope='redacted', key='redacted')&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;profile&lt;/FONT&gt; = delta_sharing.protocol.DeltaSharingProfile.from_json(credentials)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Now, instead of doing&lt;BR /&gt;&lt;STRONG&gt;delta_sharing.load_as_spark(f"&lt;FONT color="#FF0000"&gt;&amp;lt;profile-path&amp;gt;&lt;/FONT&gt;#&amp;lt;share-name&amp;gt;.&amp;lt;schema-name&amp;gt;.&amp;lt;table-name&amp;gt;", version=&amp;lt;version-as-of&amp;gt;)&lt;BR /&gt;&lt;/STRONG&gt;as suggested in the documentation, I was hoping to use my &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;profile&lt;/FONT&gt; &lt;/STRONG&gt;variable that I created and use that in place of&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;profile-path&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;. Is that possible? I was thinking there has to be a way because the &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;profile&lt;/STRONG&gt; &lt;/FONT&gt;variable has the same information in the share.config file. That is,&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;print(&lt;FONT color="#0000FF"&gt;profile&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;DeltaSharingProfile(share_credentials_version=1, endpoint='xyz', bearer_token='xyz', expiration_time='2023-09-10T04:10:49.277Z', type=None, token_endpoint=None, client_id=None, client_secret=None, username=None, password=None)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 13:57:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40787#M759</guid>
      <dc:creator>alex-syk</dc:creator>
      <dc:date>2023-08-21T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40894#M764</link>
      <description>&lt;P&gt;Hi, the most feasible way would be to convert the contents of your key file into base64 and only mention the spark config as below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;credentials &amp;lt;base 64 encoded code&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 06:48:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/40894#M764</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-22T06:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41067#M769</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;, do you have have some example code you can share?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 21:21:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41067#M769</guid>
      <dc:creator>alex-syk</dc:creator>
      <dc:date>2023-08-22T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41109#M773</link>
      <description>&lt;P&gt;Hi, there is no code as such,&amp;nbsp;only in the spark config you have to mention the syntax with the&amp;nbsp;spark config as below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;credentials &amp;lt;base 64 encoded code&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:01:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41109#M773</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-23T08:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41174#M784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;, how do I mention the syntax with the spark config?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:00:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41174#M784</guid>
      <dc:creator>alex-syk</dc:creator>
      <dc:date>2023-08-23T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41276#M788</link>
      <description>&lt;P&gt;Hi, you can mention something like below with the other spark configs, such as:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;spark.hadoop.google.cloud.auth.service.account.enable true
spark.hadoop.fs.gs.auth.service.account.email &amp;lt;client-email&amp;gt;
spark.hadoop.fs.gs.project.id &amp;lt;project-id&amp;gt;&lt;BR /&gt;credentials &lt;SPAN&gt;&amp;lt;base 64 encoded code&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:35:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/41276#M788</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-24T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Sharing - Alternative to config.share</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/124274#M10341</link>
      <description>&lt;P&gt;Hello Alex,&lt;BR /&gt;&lt;BR /&gt;Were you able to fix this issue ? What did you do in this case? I am trying to achieve the same but stuck with same issue&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 09:15:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-sharing-alternative-to-config-share/m-p/124274#M10341</guid>
      <dc:creator>IndhuShree</dc:creator>
      <dc:date>2025-07-07T09:15:54Z</dc:date>
    </item>
  </channel>
</rss>

