[英]Unable to access a mounted Azure Data Lake storage using Azure Databricks
I'm playing around with the Azure Databricks.我在玩 Azure Databricks。 Using the documents specified on the Microsoft Learn website, I managed to mount a BLOB storage (ADLS Gen2) to my Databricks.
使用 Microsoft Learn 网站上指定的文档,我设法将 BLOB 存储 (ADLS Gen2) 安装到我的 Databricks。
However, when I try to list the contents of the mounted storage, I get the following error:但是,当我尝试列出已安装存储的内容时,出现以下错误:
ExecutionError: An error occurred while calling z:com.databricks.backend.daemon.dbutils.FSUtils.ls.
: GET https://xxxxxxxxxxxxx.dfs.core.windows.net/xxxxxxx?resource=filesystem&maxResults=5000&timeout=90&recursive=false
StatusCode=403
StatusDescription=This request is not authorized to perform this operation using this permission.
ErrorCode=AuthorizationPermissionMismatch
I've checked the permissions, and my ServicePrincipal has been assigned the role 'STORAGE BLOB DATA CONTRIBUTOR' which allows R/W access on my storage container.我检查了权限,并且我的 ServicePrincipal 被分配了角色“STORAGE BLOB DATA CONTRIBUTOR”,它允许对我的存储容器进行 R/W 访问。
Anyone has an idea which part I'm missing to get this working?任何人都知道我缺少哪个部分来使其正常工作? Help will be much appreciated.
帮助将不胜感激。
Just found a solution to my own problem.刚刚找到了解决我自己问题的方法。
Root cause was the fact there were no permissions set on the Azure Storage container itself (although in the Azure Portal, everything looked OK).根本原因是没有在 Azure 存储容器本身上设置权限(尽管在 Azure 门户中,一切看起来都不错)。
What I did to resolve this: Download and install Azure Storage Explorer on your local machine我做了什么来解决这个问题:在本地计算机上下载并安装 Azure Storage Explorer
That did the trick for me.这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.