【发布时间】:2022-01-13 06:51:12
【问题描述】:
我有一个数据块笔记本,它正在将数据帧写入 ADLS Gen2 存储中的文件。
它创建一个临时文件夹,输出文件,然后将该文件复制到一个永久文件夹。由于某种原因,该文件没有正确继承 ACL。它创建的文件夹具有正确的 ACL。
笔记本的代码:
#Get data into dataframe
df_export = spark.sql(SQL)
# OUTPUT file to temp directory coalesce(1) creates a single output data file
(df_export.coalesce(1).write.format("parquet")
.mode("overwrite")
.save(TempFolder))
#get the parquet file name. It's always the last in the folder as the other files are created starting with _
file = dbutils.fs.ls(TempFolder)[-1][0]
#create permanent copy
dbutils.fs.cp(file,FullPath)
文件显示以下内容。
还有一个面具。我对面具不是很熟悉,所以不知道这有什么不同。
文件夹的屏蔽权限显示
在文件上显示为
有谁知道为什么这不会从父文件夹继承 ACL?
【问题讨论】:
标签: acl azure-databricks azure-data-lake-gen2