在 hdfs 中重命名目录 [英] Rename directory in hdfs
本文介绍了在 hdfs 中重命名目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要重命名 hdfs 中的目录.那命令是什么?
I need to rename a directory in hdfs. What is the command for that ?
hadoop fs -mv <src> <dest>
上述命令将 src 文件夹移动到 dest 文件夹.而不是,我希望将 src
文件夹重命名为 dest
.
The above command moves the src folder into dest folder. Instead of, I want the src
folder to be renamed as dest
.
推荐答案
重命名不在hadoop中,但是可以移动,hadoop fs -mv oldname newname
Rename is not in hadoop, but you can move, hadoop fs -mv oldname newname
这篇关于在 hdfs 中重命名目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文