Github user chandrasaripaka commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2161#discussion_r241980383 --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/filesystem/AlluxioCarbonFile.java --- @@ -94,14 +93,9 @@ public CarbonFile getParentFile() { public boolean renameForce(String changeToName) { FileSystem fs; try { - fs = fileStatus.getPath().getFileSystem(FileFactory.getConfiguration()); - if (fs instanceof DistributedFileSystem) { - ((DistributedFileSystem) fs).rename(fileStatus.getPath(), new Path(changeToName), - org.apache.hadoop.fs.Options.Rename.OVERWRITE); - return true; - } else { - return false; - } + fs = fileStatus.getPath().getFileSystem(hadoopConf); + fs.delete(new Path(changeToName), true); + return fs.rename(fileStatus.getPath(), new Path(changeToName)); --- End diff -- I am removing the delete..as kindle refer to the rename operation in Alluxio..it conflicts the way delete is present..which is handled in the alluxio version from 1.7.1
---