Thank you everyone for your time and effort. After reading document shared above which explains why we should not use s3FS . I have changed my code to work with s3 apis and it is working fine.