cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Error while mounting to ADLS Gen2 - Error: Secret does not exist with scope "*****" and Key : "******"

Databricks_Venk
New Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @Venkata Vadapalliโ€‹ ,

You may follow the below steps to create a mount point using Azure Key-vault.

You should have the following information:

โ€ข Client ID (a.k.a. Application ID) => Key Name as ClientID = 06exxxxxxxxxxd60ef

โ€ข Client Secret (a.k.a. Application Secret) => Key Name as ClientSecret = ArrIxxxxxxxxxxxxxxbMt]*

โ€ข Directory ID (a.k.a Tenant ID) => Key Name as DirectoryID = https://login.microsoftonline.com//oauth2/token

โ€ข Databricks Secret Scope Name => xyz

โ€ข File System Name => filesystem

โ€ข Storage Account Name => xyz2

โ€ข Mount Name => abc

Azure Data Lake Gen2 mount normal method:

Scala Code:

val configs = Map(
  "fs.azure.account.auth.type" -> "OAuth",
  "fs.azure.account.oauth.provider.type" -> "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
  "fs.azure.account.oauth2.client.id" -> "06ecXXXXXXXXXXXXXXXXXX60ef",
  "fs.azure.account.oauth2.client.secret" -> "ArXXXXXXXXXXXXXMt]*",
  "fs.azure.account.oauth2.client.endpoint" -> "https://login.microsoftonline.com/72f98XXXXXXXXXXXXXXXXXXX1db47/oauth2/token")
 
// Optionally, you can add <directory-name> to the source URI of your mount point.
dbutils.fs.mount(
  source = "abfss://filesystem@chepragen2.dfs.core.windows.net/",
  mountPoint = "/mnt/Kenny",
  extraConfigs = configs)

This link might help you as well.

View solution in original post

2 REPLIES 2

Anonymous
Not applicable

Hi there,

My name is Piper, and I'm one of the moderators for Databricks. Thank you for coming to us with this. Let's give our members a chance to respond first, then we'll come back to see how things went.

Kaniz
Community Manager
Community Manager

Hi @Venkata Vadapalliโ€‹ ,

You may follow the below steps to create a mount point using Azure Key-vault.

You should have the following information:

โ€ข Client ID (a.k.a. Application ID) => Key Name as ClientID = 06exxxxxxxxxxd60ef

โ€ข Client Secret (a.k.a. Application Secret) => Key Name as ClientSecret = ArrIxxxxxxxxxxxxxxbMt]*

โ€ข Directory ID (a.k.a Tenant ID) => Key Name as DirectoryID = https://login.microsoftonline.com//oauth2/token

โ€ข Databricks Secret Scope Name => xyz

โ€ข File System Name => filesystem

โ€ข Storage Account Name => xyz2

โ€ข Mount Name => abc

Azure Data Lake Gen2 mount normal method:

Scala Code:

val configs = Map(
  "fs.azure.account.auth.type" -> "OAuth",
  "fs.azure.account.oauth.provider.type" -> "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
  "fs.azure.account.oauth2.client.id" -> "06ecXXXXXXXXXXXXXXXXXX60ef",
  "fs.azure.account.oauth2.client.secret" -> "ArXXXXXXXXXXXXXMt]*",
  "fs.azure.account.oauth2.client.endpoint" -> "https://login.microsoftonline.com/72f98XXXXXXXXXXXXXXXXXXX1db47/oauth2/token")
 
// Optionally, you can add <directory-name> to the source URI of your mount point.
dbutils.fs.mount(
  source = "abfss://filesystem@chepragen2.dfs.core.windows.net/",
  mountPoint = "/mnt/Kenny",
  extraConfigs = configs)

This link might help you as well.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.