Getting "put: Status code: -1 error code: null error message: InvalidAbfsRestOperationException" error

Naga Vinod K 0 Reputation points


Getting below error while ingesting data from our VM to ADLS using below command and find below details.


curl -vkS s | hadoop fs -put - abfss://


put: Status code: -1 error code: null error message: InvalidAbfsRestOperationException

Please help me on this and the thing is, When we run manually it is running fine but when we do this through scripts we are not able to do and getting above error messages and failing all the ingestion jobs.

Thanks in advance...!

Best Regards,


Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 25,801 Reputation points Microsoft Employee

    Hello Vinod K,

    Welcome to the MS Q&A platform.

    Since you were able to run the command manually, it could be an issue with credentials when running through scripts.

    Can you please ensure the credentials(username and password) you are using to access the ADLS account are correct and it has the necessary permissions to access the target directory?

    and can you try adding the "-v" flag to the "hadoop fs" command to increase the verbosity level and get more information about the error?

    0 comments No comments