You can something like this: testPath.getFileSystem(conf).rename(new Path(strSrc), new Path(strDst));
On Wed, Jul 30, 2008 at 2:11 PM, Miles Osborne <[EMAIL PROTECTED]> wrote: > bin/hadoop dfs -mv > > Miles > > 2008/7/30 Rutuja Joshi <[EMAIL PROTECTED]>: > > > Hi all, > > > > Could anyone suggest any efficient way to move files from one location to > > another on Hadoop. Please note that both the locations are on HDFS. > > I tried looking for inbuilt file system APIs but couldn't find anything > > suitable. > > > > I could use moveToLocalFile and moveFromLocalFile but I do not think > that's > > the efficient solution here. > > > > Any help is appreciated, > > Regards, > > Rutuja > > > > > > -- > The University of Edinburgh is a charitable body, registered in Scotland, > with registration number SC005336. >
