Class CopyFromLocalOperation

All Implemented Interfaces:
org.apache.hadoop.util.functional.CallableRaisingIOE<Void>

public class CopyFromLocalOperation extends ExecutingStoreOperation<Void>
Implementation of CopyFromLocalOperation.

This operation copies a file or directory (recursively) from a local FS to an object store. Initially, this operation has been developed for S3 (s3a) interaction, however, there's minimal work needed for it to work with other stores.

How the uploading of files works:

  • all source files and directories are scanned through;
  • the LARGEST_N_FILES start uploading;
  • the remaining files are shuffled and uploaded;
  • any remaining empty directory is uploaded too to preserve local tree structure.