关于hadoop hdfs文件系统重命名 [英] About hadoop hdfs filesystem rename
问题描述
我可以问一般文件系统重命名方法的成本是多少?
说我有移动数TB的数据。
非常感谢你。
如果实施正确,在HDFS或任何文件系统中移动文件涉及对名称空间的更改而不移动实际数据。通过代码只改变Name节点中的名称空间(内存和编辑日志)。
从 NameNode.java NameNode控制两个关键表: 只有第一部分需要修改,块到机器列表不一定是。我没有尝试过,但我想这应该是OK。 I am storing lots of data into hdfs. And I need to move the files from one folder to another. May I ask generally how much is the cost of filesystem's rename method?
Say I have to move terabytes of data. Thank you very much. Moving files in HDFS or any file system if implemented properly involves changes to the name space and not moving of the actual data. Going through the code only changes in the name space (memory and edit log) in the Name node are done. From the NameNode.java class Only the first part needs to be modified, block to machine list need not be. I haven't tried it out, but I guess it should be OK. 这篇关于关于hadoop hdfs文件系统重命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
$ b