简体   繁体   English

用Azure Data Lake gen2列出斑点的问题

[英]Problem to list blobs with Azure Data Lake gen2

I've used Azure Storage(Blobs) to store files. 我已经使用Azure存储(Blob)存储文件。

Now I'm planning to migrate to Data Lake Gen2. 现在,我计划迁移到Data Lake Gen2。 Unfortunately, after I've switched connection string to gen2 storage it shows 400 Error with Bad Request to me on ListBlob() method. 不幸的是,在我将连接字符串切换到gen2存储之后,它在ListBlob()方法上显示400错误,并向我发送了错误的请求。

Code example: 代码示例:

var storageAccount = CloudStorageAccount.Parse(connectionString);
var myClient = storageAccount.CreateCloudBlobClient();
var container = myClient.GetContainerReference(containerName);
var dirRef= container.GetDirectoryReference(directory);
var blobs = dirRef.ListBlobs();

So, when I'm trying to iterate blobs it generates an exception. 因此,当我尝试迭代Blob时会生成一个异常。 Does anyone have experience with this? 有人对此有经验吗?

It is a known issue, see Known issues with Azure Data Lake Storage Gen2 . 这是一个已知问题,请参阅Azure Data Lake Storage Gen2的已知问题

Blob Storage APIs and Azure Data Lake Gen2 APIs aren't interoperable with each other. Blob存储API和Azure Data Lake Gen2 API不能互操作。

Blob storage APIs aren't yet available to Azure Data Lake Storage Gen2 accounts. Blob存储API尚不适用于Azure Data Lake Storage Gen2帐户。

These APIs are disabled to prevent inadvertent data access issues that could arise because Blob Storage APIs aren't yet interoperable with Azure Data Lake Gen2 APIs. 禁用这些API是为了防止由于Blob存储API尚未与Azure Data Lake Gen2 API互操作而引起的意外数据访问问题。

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

相关问题 使用分层命名空间列出 Azure Data Lake gen2 中的目录 - List directories in Azure Data Lake gen2 with hierarchical namespace Azure 数据湖存储 Gen2 权限 - Azure Data Lake storage Gen2 permissions Azure 的“Data Lake Storage Gen2”和“Data Lake Gen2”有什么区别? - What is the difference between Azure's "Data Lake Storage Gen2" and "Data Lake Gen2"? 无法使用 python azure-storage-file-datalake SDK 在 Azure Data Lake Gen2 中创建 Append Blob - Cannot create Append Blobs in Azure Data Lake Gen2 using python azure-storage-file-datalake SDK Hadoop 客户端用户名和密码访问 Azure Data Lake Gen2 的问题 - Hadoop client Username and Password access problem to the Azure Data Lake Gen2 获取列表中数据湖 gen2 文件夹的所有内容 azure 突触工作区 - get all the contents of data lake gen2 folder in a list azure synapse workspace 寻找 REST API 以列出 Azure Data Lake Gen2 存储的所有容器 - Looking for REST API to list all Containers of Azure Data Lake Gen2 Storage Azure Data Lake Analytics 是否支持 ADLS Gen2? - Will Azure Data Lake Analytics support ADLS Gen2? 如何在Azure数据湖Gen2中处理遥测JSON消息? - How to process the telemetry json messages in Azure data lake Gen2? Microsoft Azure Data Lake 存储 (Gen2) 中的分层命名空间是什么? - What is hierarchical namespace in Microsoft Azure Data Lake storage (Gen2)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM