简体   繁体   English

使用 Azure 数据工厂中的复制活动复制数据时转换文件格式

[英]Convert file format while copying data using copy activity in Azure data factory

I am performing a copy activity to bring in data into the Azure data lake using Azure data factory.我正在执行复制活动,使用 Azure 数据工厂将数据导入 Azure 数据湖。 The file format is compressed(.gz) format.文件格式为压缩(.gz)格式。

I want to copy those files but want to change the format to.json instead of copying in the same original format(the.gz file contains inside a.json file).我想复制这些文件,但想将格式更改为 .json 而不是以相同的原始格式复制(.gz 文件包含在 .json 文件中)。

Is there a mechanism to get this done in Azure data factory?在 Azure 数据工厂中是否有一种机制可以完成这项工作? I want to perform this because in further ETL process i will face issues with.gz format.我想执行此操作,因为在进一步的 ETL 过程中,我将面临 .gz 格式的问题。

Any help would be great.任何帮助都会很棒。 Thank you.谢谢。

Step1: Create Copy Activity.第一步:创建复制活动。

Step2: Select.gz file as Source Step2: Select.gz 文件作为源

Step3: Select gzip(.gz) as Compression type and Compression level as Optimal.3 步: Select gzip(.gz) 作为压缩类型,压缩级别为最佳。

在此处输入图像描述

Step4: Select Sink as blob storage and run pipeline. Step4: Select Sink 作为 blob 存储和运行管道。

This will unzip your.gz file.这将解压缩您的 .gz 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Azure 数据工厂复制活动更新 Cosmos 项目 TTL - Upsert Cosmos item TTL using Azure Data Factory Copy Activity Azure Data Factory Copy 总是复制 100 行 - Azure Data Factory Copy is always copying 100 rows 在 azure 数据工厂中使用 stringify 活动 - Using stringify activity in azure data factory 如何在 Azure 数据工厂的复制活动中强制映射 - How to force mapping in copy activity of Azure Data Factory 如何在 Azure 数据工厂的复制活动中捕获 output 值 - How to capture an output value in Copy Activity in Azure Data Factory Azure 数据工厂 (V2) 复制活动 - 缺少高级编辑器 - Azure Data Factory (V2) Copy Activity - advanced editor missing 复制活动中的正则表达式附加列 Azure 数据工厂 - Regex Additional Column in Copy Activity Azure Data Factory 如何在 json 中为 azure 数据工厂 (adf) 中的复制活动添加默认日期,同时在 SQL 源和接收器之间动态映射列 - How to Add default date in json for copy activity in azure data factory(adf) while dynamic mapping of columns between SQL source and sink 是否可以在数据工厂复制活动中展平 json 文件? - Is it possible to flatten json file in Data factory copy activity? 如何使用 azure 数据工厂删除活动删除子文件夹? - How to delete sub folder using azure data factory delete activity?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM