安装ADLS GEN2存储 - 文件必须为dbfs或s3n: /
我想使用此代码将ADLS GEN2存储安装在数据链串中:
%python
configs = {
"fs.azure.account.key.<storage-account-name>.dfs.core.windows.net": <storage-account-key>,
"spark.hadoop.fs.azure.account.key.<storage-account-name>.dfs.core.windows.net": <storage-account-key>
}
dbutils.fs.mount(
source = "abfss://<container-name>@<storage-account-name>>.dfs.core.windows.net/",
mount_point = "/mnt/aaa",
extra_configs = configs)
但是我得到:
有什么想法是根本原因吗?
I want to mount ADLS Gen2 Storage in Databricks with this code:
%python
configs = {
"fs.azure.account.key.<storage-account-name>.dfs.core.windows.net": <storage-account-key>,
"spark.hadoop.fs.azure.account.key.<storage-account-name>.dfs.core.windows.net": <storage-account-key>
}
dbutils.fs.mount(
source = "abfss://<container-name>@<storage-account-name>>.dfs.core.windows.net/",
mount_point = "/mnt/aaa",
extra_configs = configs)
But I get:
Any idea what can be root cause?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在Databrick中安装并实现两种情况。
直接从adls gen2 blob存储
&lt; storage-account-access key&gt;
extair_configs
中,从而直接从adls gen2 blob存储中访问访问键。创建安装座。语法
“ nofollow noreferrer”>
转到 访问密钥 和 复制键 - &gt; 创建Secret ,用于 Azure键Vault 中的访问密钥。
创建一个 azure键库 和 秘密范围> - &gt; 创建范围 - &gt;输入 DNS名称
(对于 示例 ,
https://databrickskv.vault.azure.azure.net/
)和 资源ID - &gt;转到 Azure Portal 中的azure键值 的属性选项卡DNS 和 资源ID 。参考:
https://bigdataprogrammers.com/create-mount-point-point-in-azure-databricks/
https://learn.microsoft.com/en-us/azure/databricks/data/databricks/databricks-file-system
//www.youtube.com/watch?v=yengrbxhmcc“ rel =“ nofollow noreferrer”> https://www.youtube.com/watch?v=yengrbxhmcc
There are two scenarios you can Mount and implement ADLS Gen2 Storage in Databrick.
Directly take the Access key from ADLS Gen2 Blob Storage past in
<storage-account-Access key>
ofextra_configs
as shown in the create mount.Syntax
Create Mount
Go to the Access Keys and copy the key -> Create Secret for Access Key in Azure Key Vault .
Create an Azure Key Vault and Secret Scope -> Create Scope -> Enter the DNS Name
(for Example,
https://databrickskv.vault.azure.net/
) and Resource ID -> Go to Properties tab of an Azure Key Vault in your Azure portal you get both DNS and Resource ID.Reference:
https://bigdataprogrammers.com/create-mount-point-in-azure-databricks/
https://learn.microsoft.com/en-us/azure/databricks/data/databricks-file-system
https://www.youtube.com/watch?v=yeNgrBxHmCc