在Hadoop中清除DFS [英] Wiping out DFS in Hadoop
本文介绍了在Hadoop中清除DFS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何清理Hadoop中的DFS? b
$ b
-
从每个节点中删除主hadoop存储目录。此目录由hdfs-site.xml中的hadoop.tmp.dir属性定义。
重新设置namenode的格式:
hadoop namenode -format
如果你只做(2),它将只删除由namenode存储的元数据,但不会摆脱所有的临时存储和datanode块。
How do I wipe out the DFS in Hadoop?
解决方案
You need to do two things:
Delete the main hadoop storage directory from every node. This directory is defined by the hadoop.tmp.dir property in your hdfs-site.xml.
Reformat the namenode:
hadoop namenode -format
If you only do (2), it will only remove the metadata stored by the namenode, but won't get rid of all the temporary storage and datanode blocks.
这篇关于在Hadoop中清除DFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文