0
votes

I am trying to download the file from adls using the BulkDownload method using BulkDownload but I am getting a BAD Request response as below:

Error in getting metadata for path cc- 
adl://testaccount.azuredatalakestore.net//HelloWorld//test.txt
Operation: GETFILESTATUS failed with HttpStatus:BadRequest Error: Uexpected 
error in JSON parsing.
Last encountered exception thrown after 1 tries. [Uexpected error in JSON 
parsing]
[ServerRequestId:]

However, if I try to download the file through azure client shell it works.

I am using the BulkDownload as follow:

        client.BulkDownload(
            srcPath,
            dstPath);

Is anyone else facing the same issue for BulkDownload call?

1

1 Answers

0
votes

I got this fixed as the srcPath is the relative path ("/HelloWorld/test.txt") in the azure datalake storage, previously I was the using the absolute path ("adl://testaccount.azuredatalakestore.net//HelloWorld/test.txt).