You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Mingxi Wu <Mi...@turn.com> on 2011/12/04 05:11:47 UTC
rename after copying on HDFS does not succeed
Hi ,
I create a copy of a file in HDFS using
org.apache.hadoop.fs.FileUtil.copy(dfs, file1, dfs, file2, false, false, dfs.getConf());
boolean succ = dfs.rename(new Path(file2), new Path(file3));
The rename always return false, any suggestions? Is that because FileUtil.copy() is not closing the file?
Thanks,
Mingxi