Skip to content

Commit

Permalink
[CARBONDATA-2529] Fixed S3 Issue for Hadoop 2.8.3
Browse files Browse the repository at this point in the history
This issue fixes the issue while loading the data with S3 as backend

This closes #2340
  • Loading branch information
bhavya411 authored and chenliang613 committed Jun 1, 2018
1 parent 5ad7009 commit 4d22ddc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public boolean renameForce(String changetoName) {
((DistributedFileSystem) fs).rename(fileStatus.getPath(), new Path(changetoName),
org.apache.hadoop.fs.Options.Rename.OVERWRITE);
return true;
} else if (fileStatus.getPath().toString().startsWith("s3n")) {
} else if (fileStatus.getPath().toString().startsWith("s3n")
|| fileStatus.getPath().toString().startsWith("s3a")) {
fs.delete(new Path(changetoName), true);
return fs.rename(fileStatus.getPath(), new Path(changetoName));
} else {
Expand Down

0 comments on commit 4d22ddc

Please sign in to comment.