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.