How to Access ADLS Gen2 from Azure Databricks Using Access Keys.In this video learn how to connect databricks to adls gen2 using access key.
Set the Access Key in Databricks
spark.conf.set(
"fs.azure.account.key.adventureworksproject1.dfs.core.windows.net",
"access_key"
)
Build the File Path (ABFSS Format)
file_path="abfss://[email protected]/customer/customers.csv"
How to Read Data From Azure Gen2 Storage
df = spark.read \
.option("header", "true") \
.csv(file_path)
display(df)
#databricks #adls #Azure Databricks
Download
0 formats
No download links available.
How to Access ADLS Gen2 from Azure Databricks Using Access Keys | NatokHD