Re: Moving files in hdfs using API

2010-10-21 Thread james warren
Adding hdfs-user@, bcc'ing mapreduce-user@ Try http://hadoop.apache.org/hdfs/docs/current/api/org/apache/hadoop/hdfs/DistributedFileSystem.html#rename(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path)

Re: Moving files in hdfs using API

2010-10-21 Thread Shrijeet Paliwal
Oh wait a sec, you may be right. Rename may not exactly work as move, worth a shot. Excuse me. On Thu, Oct 21, 2010 at 12:41 PM, Shrijeet Paliwal wrote: > rename : > http://hadoop.apache.org/hdfs/docs/current/api/org/apache/hadoop/hdfs/protocol/ClientProtocol.html#rename(java.lang.String, > java

Re: Moving files in hdfs using API

2010-10-21 Thread Shrijeet Paliwal
rename : http://hadoop.apache.org/hdfs/docs/current/api/org/apache/hadoop/hdfs/protocol/ClientProtocol.html#rename(java.lang.String, java.lang.String, org.apache.hadoop.fs.Options.Rename...) On Thu, Oct 21, 2010 at 12:27 PM, rakesh kothari wrote: > Hi, > > Is "move" not supported in Hdfs ? I ca

Moving files in hdfs using API

2010-10-21 Thread rakesh kothari
Hi, Is "move" not supported in Hdfs ? I can't find any API for that. Looking at the source code for hadoop CLI it seems like it's implementing move by copying data from src to dest and deleting the src. This could be a time consuming operation. Thanks, -Rakesh