hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingxi Wu <Mingxi...@turn.com>
Subject rename after copying on HDFS does not succeed
Date Sun, 04 Dec 2011 04:11:47 GMT


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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message