[英]How to list all the mount points in Azure Databricks?
I tried with this %fs ls dbfs:/mnt , but i want to know do this give me all the mount point?我试过这个%fs ls dbfs:/mnt ,但我想知道这会给我所有的挂载点吗?
I like to do the following:我喜欢做以下事情:
display(dbutils.fs.mounts())
as it displays the databricks path and external endpoint.因为它显示了数据块路径和外部端点。
I find it safer than %sh ls /mnt/
as you can have a folder in /mnt/ that is not pointing to an external storage.我发现它比
%sh ls /mnt/
更安全,因为您可以在 /mnt/ 中有一个不指向外部存储的文件夹。
You can simply use the Databricks filesystem commands to navigate through the mount points available in your cluster.您可以简单地使用 Databricks 文件系统命令来浏览集群中可用的挂载点。
%fs
mounts
This will give you all the mount points and also display the corresponding ADLS source file path.这将为您提供所有挂载点,并显示相应的 ADLS 源文件路径。
all above command will display mount point.以上所有命令都会显示挂载点。 But how can we we know which storage account is used for this mount point?
但是我们怎么才能知道这个挂载点使用了哪个存储账户呢?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.