如何在Azure Data Factory v2中解压缩zip文件 [英] How to decompress a zip file in Azure Data Factory v2

查看:92
本文介绍了如何在Azure Data Factory v2中解压缩zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Azure Data Factory v2解压缩一个zip文件(其中包含多个文件).该zip文件位于Azure文件存储中.ADF复制任务仅复制原始zip文件而不解压缩它.关于如何进行这项工作有什么建议吗?

I'm trying to decompress a zip file (with multiple files inside) using Azure Data Factory v2. The zip file is located in Azure File Storage. The ADF Copy task just copies the original zip file without decompressing it. Any suggestion on how to make this work?

这是当前配置:

  1. 已将zip文件源设置为压缩类型= ZipDeflate的二进制数据集.
  2. 目标文件夹也被设置为二进制数据集,但压缩类型= None.
  3. 已创建具有单个复制"任务的管道,用于将文件从zip文件移动到目标文件夹.

推荐答案

如果您不想丢失zip文件中的文件名,请使用复制"活动,但将复制行为"设置为保留层次结构".这将创建一个带有您的zip文件名称的文件夹,并且这些文件将以其原始名称位于其中.

If you don't want to lose the names of the files within your zip, use the Copy activity but set the Copy Behavior to "Preserve hierarchy". This will create a folder with the name of your zip file, and the files will be inside with their original names.

邮编复制行为

这篇关于如何在Azure Data Factory v2中解压缩zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆