mercredi 14 octobre 2015

AWS Java SDK - Method to copy the exact directory structure to local or HDFS

I want to write a java code to copy the exact directory structure (given a path) in a bucket including all files and sub-folders to some location in HDFS or the local file system.

I did some research but all I could find was how to copy exact objects (files), and not directory structures. HDFS has useful methods like hdfsFileSystem.copyToLocalFile to achieve the same. Is something like this available for S3 Java SDK?




Aucun commentaire:

Enregistrer un commentaire