简体   繁体   English

更改 Azure 中 BLOB 存储的格式

[英]Changing the format of BLOB storage in Azure

How to change the storage format of the BLOB.如何更改 BLOB 的存储格式。 For me it is always storing AVRO file.对我来说,它总是存储 AVRO 文件。 I wanted to change as JSON format.我想更改为 JSON 格式。

Also, I am seeing the following error msg in BLOB storage :另外,我在 BLOB 存储中看到以下错误消息:

  1. avro may not render correctly as it contains an unrecognized extension. (Pls refer the error in the attached msg) (请参考附件中的错误信息)
  2. Also I am seeing encrypted msg, due to all this reason data explorer could not pull the data.此外,由于所有这些原因,数据资源管理器无法提取数据,因此我看到了加密的味精。

I am not able to pull the data in to data explorer because of this format issues由于这种格式问题,我无法将数据拉入数据资源管理器

在此处输入图片说明

This is likely because you might have enabled capturing of events streaming through Azure Event Hubs .这可能是因为你可能已启用通过 Azure 事件中心捕获事件流

Azure Event Hubs Capture enables you to automatically deliver the streaming data in Event Hubs to an Azure Blob storage or Azure Data Lake Storage Gen1 or Gen 2 account of your choice. Azure 事件中心捕获使你能够将事件中心中的流数据自动传送到你选择的 Azure Blob 存储或 Azure Data Lake Storage Gen1 或 Gen 2 帐户。

Captured data is written in Apache Avro format: a compact, fast, binary format that provides rich data structures with inline schema.捕获的数据以Apache Avro格式编写:一种紧凑、快速的二进制格式,可提供具有内联架构的丰富数据结构。 This format is widely used in the Hadoop ecosystem, Stream Analytics, and Azure Data Factory.这种格式广泛用于 Hadoop 生态系统、流分析和 Azure 数据工厂。

More information about working with Avro files is available in this article: Exploring the captured files and working with Avro本文提供了有关使用 Avro 文件的更多信息: 探索捕获的文件并使用 Avro

@mmking is right in that you cannot change/convert the file formats within Azure Blob Storage, although you can use Avro Tools to convert the file to JSON format and perform other processing. @mmking 是正确的,因为您无法更改/转换 Azure Blob 存储中的文件格式,但您可以使用 Avro 工具将文件转换为 JSON 格式并执行其他处理。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM