cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

CDM connector for Spark can't connect to Azure storage account

Spark4speed
New Contributor

Hello,

I'm trying to use the CDM connector for Spark, but I can't connecto to the Azure storage account when using the connector.

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:

java.lang.NoSuchMethodError: com.databricks.backend.daemon.data.client.adl.AdlGen2CredentialContextTokenProvider.getToken()Lshaded/databricks/v20180920_b33d810/org/apache/hadoop/fs/azurebfs/oauth2/AzureADToken;

I tried using a managed identity and a SAS token when using the connector, but without any luck.

Can I force the connector to use a SAS token?

I tried it like this and without the sas token:

df = (spark.read
    .format("com.microsoft.cdm")
    .option("storage", "<storage_account>")
    .option("manifestPath", "<path_to_manisfest_file>")
    .option("entity", "<entityname>")
    .option("sasToken", sas)
    .load()
)

What else can I try?

1 REPLY 1

Anonymous
Not applicable

Hi @Martijn de Bruijn​ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group