简体   繁体   English

Matillion:从 Azure Blob 存储容器和 Windows 文件共享中删除文件

[英]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.

相关问题 从Azure vm(linux)发送数据到Azure blob存储容器 - Send data from Azure vm (linux) to Azure blob storage container Azure 数据工厂 - 从文件共享中读取文件路径列表并保存到 Blob - Azure Data Factory - Read in a list of filepaths from a fileshare and save to Blob 将文件从 Azure blob 存储移动到 Google 云存储桶 - Moving Files from Azure blob storage to Google cloud storage bucket 从 Blob-Storage-Container 读取文件的时差 - Time difference reading files from Blob-Storage-Container 从笔记本电脑 spark 读取 Azure blob 存储中的文件时出错 - Error in reading files in Azure blob storage from laptop spark Azure Runbook 不删除文件共享中的文件 - Azure Runbook not deleting Files in Fileshare 无法将 .bacpac 文件从 Azure VM 上传到 Azure blob 存储容器 - Not able to upload the .bacpac file from Azure VM to Azure blob storage container Azure 存储帐户文件共享内容保留期 - Azure storage account fileshare contents retention period windows azure 开发存储 blob 服务未启动 - windows azure development storage blob service not starting 如何使用 Python 和 Azure 函数在 Azure 存储容器中创建 blob - How to create a blob in an Azure Storage Container using Python & Azure Functions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM