How can I move a file in HDFS from one directory to another with the help of JAVA APIs. The java Filesystem class moves the file in local file system. But I want to move the File across the HDFS.
In HDFS I have to read the file as input streams and then remove the old copy.