Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi , I am trying to download multiple files from S3 , i am getting the below error com.amazonaws.services.s3.transfer.exception.FileLockException:
i can download the single file but when i am trying to iterate and get multiple files this error is coming. Any idea?
I have used prejob to set S3 connection and postjob to close s3 connection
In Case anyone in future faces the same issue , in my case this issue occurred due to special characters coming in file name , file names had (:) colon and when you try to down it on local it fails with that file lock error , i applied replaceAll after fetching the file names it converted all the colons to undescore.
((String)globalMap.get("tS3List_3_CURRENT_KEY")).substring(((String)globalMap.get("tS3List_3_CURRENT_KEY")).lastIndexOf("/") + 1).replaceAll(":", "_")
Thanks.
Hi All ,
I was able to figure out the issue here and able to download all the files now.
In Case anyone in future faces the same issue , in my case this issue occurred due to special characters coming in file name , file names had (:) colon and when you try to down it on local it fails with that file lock error , i applied replaceAll after fetching the file names it converted all the colons to undescore.
((String)globalMap.get("tS3List_3_CURRENT_KEY")).substring(((String)globalMap.get("tS3List_3_CURRENT_KEY")).lastIndexOf("/") + 1).replaceAll(":", "_")
Thanks.
Hello,
Thanks for letting us know this issue has been resolved by yourself and sharing your solution with us on Community.
Best regards
Sabrina