none
Microsoft.Rest.Azure.CloudException was thrown

    Question

  • I have a big file on Data Lake store, size is 35GB. I m trying to open just a little part of it with .NET SDK method

    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));

    where I put my length to be 2mb or 2097152 bytes and offset to almost 35GB or 37580963840 bytes. When I run the application it throws Microsoft.Rest.Azure.CloudException without any inner exception and stack trace is not of big use. Does anybody know something about this?

    Tuesday, January 16, 2018 3:48 PM

All replies

  • This looks like you are trying to access beyond the end of the file (offset at then end of the file).  

    Saturday, February 3, 2018 1:12 AM