[英]'Microsoft.Rest.Azure.CloudException', reason: 'Microsoft.Rest.Azure.CloudException: Authorization has been denied for this request
[英]Microsoft.Rest.Azure.CloudException was thrown when trying to open file from Data Lake store
我在Data Lake商店中有一个大文件,大小为35GB。 我正在尝试使用.net SDK方法打开其中的一小部分
public static Task<Stream> OpenAsync(this IFileSystemOperations operations, string accountName, string directFilePath, long? length = null, long? offset = null, Guid? fileSessionId = null, CancellationToken cancellationToken = default(CancellationToken));
我将长度设为2mb或2097152字节,并偏移到将近35gb 37580963840字节。 当我运行该应用程序时,它会抛出Microsoft.Rest.Azure.CloudException而没有任何内部异常,并且堆栈跟踪没有太大用处。 有人知道吗?
可能是授权失败,您是否为aad提供了“读取”访问权限(datalake => IAM(访问控制))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.