[英]Matillion: Delete files from Azure Blob Storage Container and Windows Fileshare
I have a use case where I am Transferring XML files from Windows fileshare to Azure Blob Storage and then loading data to Snowflake Tables.我有一个用例,我正在将 XML 个文件从 Windows 文件共享传输到 Azure Blob 存储,然后将数据加载到 Snowflake 表。 I am using Matillion to achieve this.
我正在使用 Matillion 来实现这一目标。
The Windows Fileshare gets Zipped XML file which contains.xml and.xml.chk files. Windows 文件共享压缩为 XML 文件,其中包含 .xml 和 .xml.chk 文件。 I am using Azure Blob Storage component of Matillion to Copy the.xml files to Snowflake table and have set Purge = True to delete them afterwards.
我正在使用 Matillion 的 Azure Blob 存储组件将 .xml 文件复制到 Snowflake 表,然后设置 Purge = True 以删除它们。
I need help in deleting the leftover.xml.chk files from Blob Storage Container.我需要帮助从 Blob 存储容器中删除 leftover.xml.chk 文件。 Also, once the data loading is complete, I would like to delete the zipped files from Windows Fileshare.
此外,一旦数据加载完成,我想从 Windows Fileshare 中删除压缩文件。
Thanks, Shivroopa谢谢,Shivroopa
you can delete the files from blob storage using the matillion python script component (orchestration->scripting->Python script)您可以使用 matillion python 脚本组件(orchestration->scripting->Python 脚本)从 blob 存储中删除文件
here is an example of python code to delete blob items and containers Delete Blob Example这是删除 blob 项目和容器的 python 代码示例 Delete Blob Example
I don't see a way to delete files on the windows machine from Matillion other than creating an API endpoint on the fileshare and calling the API from Matillion.除了在文件共享上创建 API 端点并从 Matillion 调用 API 之外,我看不到从 Matillion 删除 windows 机器上的文件的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.