简体   繁体   中英

getting error while mounting azure storage account with Databricks file system

I am new to Azure Databricks and even to Spark technology. I am trying to mount my azure storage on HDFS using below method but it is giving error mentioned below. Can somebody please help me to fix this? In the notebook, I have selected Scala as a language.

    dbutils.fs.mount( source = "wasbs://rmwblobcontainer@rmwsa1.blob.core.windows.net/", mountPoint = "/mnt/mypath", extraConfigs = Map("fs.azure.account.key.rmwsa1.blob.core.windows.net" -> "{MX6BzXjcdIW+SJrvfocw8uFLT99Gs1aLtWBWkpQK7OyXIlctaoW1A/WQ9gBEGaxXcQ76FjEAI2hJGTiOQ6lCAA==}"))

Error --

    shaded.databricks.org.apache.hadoop.fs.azure.AzureException: 
    java.lang.IllegalArgumentException: The String is not a valid Base64-encoded string

You will recieve this error message " shaded.databricks.org.apache.hadoop.fs.azure.AzureException: java.lang.IllegalArgumentException: The String is not a valid Base64-encoded string ", when you have additional values in the Azure Storage access key.

Azure Storage access key contains curly braces "{}" at start & end, please do remove curly brackets and rerun the cell.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM