<?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: CDM connector for Spark can't connect to Azure storage account in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cdm-connector-for-spark-can-t-connect-to-azure-storage-account/m-p/2729#M51</link>
    <description>&lt;P&gt;Hi @Martijn de Bruijn​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 05:02:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-23T05:02:26Z</dc:date>
    <item>
      <title>CDM connector for Spark can't connect to Azure storage account</title>
      <link>https://community.databricks.com/t5/data-engineering/cdm-connector-for-spark-can-t-connect-to-azure-storage-account/m-p/2728#M50</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the &lt;A href="https://github.com/Azure/spark-cdm-connector" alt="https://github.com/Azure/spark-cdm-connector" target="_blank"&gt;CDM connector&lt;/A&gt; for Spark, but I can't connecto to the Azure storage account when using the connector. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mounted a container of storage account with a SAS-token. When I'm trying to read CDM data from a (mounted) storage account, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java.lang.NoSuchMethodError: com.databricks.backend.daemon.data.client.adl.AdlGen2CredentialContextTokenProvider.getToken()Lshaded/databricks/v20180920_b33d810/org/apache/hadoop/fs/azurebfs/oauth2/AzureADToken;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried using a managed identity and a SAS token when using the connector, but without any luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I force the connector to use a SAS token? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it like this and without the sas token:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df = (spark.read
    .format("com.microsoft.cdm")
    .option("storage", "&amp;lt;storage_account&amp;gt;")
    .option("manifestPath", "&amp;lt;path_to_manisfest_file&amp;gt;")
    .option("entity", "&amp;lt;entityname&amp;gt;")
    .option("sasToken", sas)
    .load()
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What else can I try? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 08:25:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cdm-connector-for-spark-can-t-connect-to-azure-storage-account/m-p/2728#M50</guid>
      <dc:creator>Spark4speed</dc:creator>
      <dc:date>2023-06-22T08:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: CDM connector for Spark can't connect to Azure storage account</title>
      <link>https://community.databricks.com/t5/data-engineering/cdm-connector-for-spark-can-t-connect-to-azure-storage-account/m-p/2729#M51</link>
      <description>&lt;P&gt;Hi @Martijn de Bruijn​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 05:02:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cdm-connector-for-spark-can-t-connect-to-azure-storage-account/m-p/2729#M51</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-23T05:02:26Z</dc:date>
    </item>
  </channel>
</rss>

