Created
November 15, 2021 09:25
-
-
Save PeerChristensen/33da8f5d0a272321efecae0c8ee83d4d to your computer and use it in GitHub Desktop.
mount blob storage in Databricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbutils.fs.mount( | |
source = "wasbs://<container-name>@<storage-account-name>.blob.core.windows.net", | |
mount_point = "/mnt/Input/", | |
extra_configs = {"fs.azure.account.key.<storage-account-name>.blob.core.windows.net":"<access-key>"}) | |
# Find csv files in container | |
os.chdir(r'/dbfs/mnt/Input') | |
allFiles = glob.glob("Input/*.csv",recursive=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment