使用Java将hdfs文件复制到另一个hdfs位置

我需要使用Java将hdfs文件复制到hdfs中的另一个位置。源不应该删除,只想复制目标hdfs位置中具有新文件名的源文件。

我在FileSystem.java类中只能看到copyFromLocal,copyToLocal或重命名。

有人可以告诉是否有任何方法可以将具有新名称的hdfs文件复制到源目录中吗?

Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
Path srcPath = new Path("hdfs://source/path/to/file");
Path dstPath = new Path("hdfs://destination/path/to/newfile");
fs.copyFromLocalFile(srcPath, dstPath);