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: 

Not able to create mount point in Databricks

Sas
New Contributor II

Hi

I am trying to create mount point in Azure Databricks, but mount point creation is failing with below error message

DBUtils.FS Handler.mount() got an unexpected keyword argument 'extra_config'

I am using following code

def setup_mount(storage_account_name,container_name):
    client_id="XXX"
    tenant_id="XXX"
    client_secret="XXX"
   
    print(1)
   
    configs={"fs.azure.account.auth.type.sasformulaone.dfs.core.windows.net":"OAuth",
            "fs.azure.account.oauth.provider.type.sasformulaone.dfs.core.windows.net":"org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
            "fs.azure.account.oauth2.client.id.sasformulaone.dfs.core.windows.net":f"{client_id}",
            "fs.azure.account.oauth2.client.secret.sasformulaone.dfs.core.windows.net":f"{client_secret}",
            "fs.azure.account.oauth2.client.endpoint.sasformulaone.dfs.core.windows.net":f"https://login.microsoftonline.com/{tenant_id}/oauth2/token"}
   
    print(2)
   


    dbutils.fs.mount(
        source = f"wasbs://{container_name}@{storage_account_name}.dfs.core.windows.net/",
        mount_point = f"/mnt/{storage_account_name}/{container_name}",
        xtraconfigs = configs)
   
    print(3)
   
    display(dbutils.fs.mounts())
0 REPLIES 0

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