HADOOP-17112. S3A committers can't handle whitespace in paths. (#2953)
Contributed by Krzysztof Adamski.
(cherry picked from commit 88a550bc3a
)
Conflicts:
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/commit/ITestCommitOperations.java
This commit is contained in:
parent
551f8d3ddc
commit
adfd767225
|
@ -431,7 +431,7 @@ public class CommitOperations {
|
|||
if (!localFile.isFile()) {
|
||||
throw new FileNotFoundException("Not a file: " + localFile);
|
||||
}
|
||||
String destURI = destPath.toString();
|
||||
String destURI = destPath.toUri().toString();
|
||||
String destKey = fs.pathToKey(destPath);
|
||||
String uploadId = null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue