Re: cp and mv

2016-05-23 Thread Kun Ren
Make sense, Thanks a lot, Mingliang. Another quick question: why there is a shell command that can copy a HDFS file to another HDFS file, but there is no API that can do this, the API only support copying file from local to HDFS, so that I should call multiple APIs to implement this, is that cor

Re: cp and mv

2016-05-20 Thread Mingliang Liu
Kun, I think you need to be ware of the difference between client and server side logic. Perhaps you’re more interested in the client side in this case. The commands are generally running in the shell, and org.apache.hadoop.fs.shell package is a good place to start. Specially, have a look at C