Hadoop – Rename directory in hdfs


I need to rename a directory in hdfs. What is the command for that ?

hadoop fs -mv <src> <dest> 

The above command moves the src folder into dest folder. Instead of, I want the src folder to be renamed as dest.

Best Solution

Rename is not in hadoop, but you can move, hadoop fs -mv oldname newname

Related Question