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
.
commandhadoophdfs
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 Answer
Rename is not in hadoop, but you can move, hadoop fs -mv oldname newname