Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.3.0, 3.2.1
Description
It looks like HADOOP-15932 disabled the optimized copyFromLocal implementation in S3A for correctness reasons. innerCopyFromLocalFile should be fixed and re-enabled. The current implementation uses FileSystem.copyFromLocal which will open an input stream from the local fs and an output stream to the destination fs, and then call IOUtils.copyBytes. With default configs, this will cause S3A to read the file into memory, write it back to a file on the local fs, and then when the file is closed, upload it to S3.
The optimized version of copyFromLocal in innerCopyFromLocalFile, directly creates a PutObjectRequest request with the local file as the input.
Attachments
Issue Links
- causes
-
SPARK-38706 Use URI in FallbackStorage.copy
- Resolved
- is related to
-
SPARK-38652 uploadFileUri should preserve file scheme
- Resolved
- relates to
-
IMPALA-9828 Add support for spilling to Remote Storage
- Open
-
HADOOP-17936 TestLocalFSCopyFromLocal.testDestinationFileIsToParentDirectory failure after reverting HADOOP-16878
- Resolved
- supercedes
-
HADOOP-15932 Oozie unable to create sharelib in s3a filesystem
- Resolved
- links to