如何从U-SQL读取加密和压缩的Blob数据 [英] How to read encrypted and gzipped blob data from u-sql

查看:77
本文介绍了如何从U-SQL读取加密和压缩的Blob数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从先压缩(gz)然后加密的Blob读取文件.将文件上传到Blob时,使用Azure SDK完成加密(BlobEncryptionPolicy传递到 CloudBlockBlob .UploadFromStreamAsync 方法).

I would like to read file from a blob that is first compressed (gz) and then encrypted. The encryption done using Azure SDK when file uploaded to Blob (BlobEncryptionPolicy passed to CloudBlockBlob.UploadFromStreamAsync method).

该blob文件具有.gz扩展名,因此U-SQL尝试解压缩,但由于对该文件进行了加密而失败.

There blob file have .gz extension so U-SQL trying to decompress but fails as the file is encrypted.

  1. 是否可以将我的u-sql脚本设置为与Azure SDK一样自动处理解压缩(例如,通过

    推荐答案

    解压缩由".gz"扩展名自动触发.因此,您将不得不重命名文档.另外,请注意,您无法调用任何外部资源来从用户代码中进行解密.您将必须将所有键作为参数传递给自定义提取器.

    The decompression is automatically triggered by the ".gz" extension. So you would have to rename the document. Also, please note that you cannot call to any external resource to decrypt from within your user-code. You will have to pass all keys as parameters to the custom extractor.

    最后,如果将数据存储在ADLS中,则会对数据进行透明加密,这会使整个过程变得容易得多.为什么将它存储在Windows Azure Blob存储中呢?

    Finally, if you store the data in ADLS, you get transparent encryption of the data and it makes the whole thing a lot easier. Why are you storing it in Windows Azure Blob Storage instead?

    这篇关于如何从U-SQL读取加密和压缩的Blob数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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