Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Databricks notebook source
- val containerName = "<container_name>"
- val storageAccountName = "<storage_account_name>"
- val accessKey = "<access_key>"
- val url = "wasbs://" + containerName + "@" + storageAccountName + ".blob.core.windows.net/"
- var keyUrl = "fs.azure.account.key." + storageAccountName +".blob.core.windows.net"
- // COMMAND ----------
- sc.hadoopConfiguration.set(keyUrl, accessKey)
- // COMMAND ----------
- dbutils.fs.mount(
- source = url,
- mountPoint = "/mnt/demo",
- extraConfigs = Map(keyUrl -> accessKey))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement