我们有一个hadoop集群,它有2个名称节点(active standby)和12个数据节点
所有12个数据节点机器都有用于hdfs的磁盘
我们在 hadoop namenode -recover
,因为我们怀疑有损坏的文件,如fsimage\u0000000000001253918或edits\u0000000000001203337-0000000000001214475等
因此,要恢复hdfs元数据,我们可以执行以下操作
$ hadoop namenode -recover
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
21/01/19 17:56:35 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: user = hdfs
STARTUP_MSG: host = master1.sys67.com/17.2.12.78
STARTUP_MSG: args = [-recover]
STARTUP_MSG: version = 2.7.3.2.6.5.0-292
21/01/19 17:56:35 INFO namenode.NameNode: createNameNode [-recover]
You have selected Metadata Recovery mode. This mode is intended to recover lost metadata on a corrupt filesystem. Metadata recovery mode often permanently deletes data from your HDFS filesystem. Please back up your edit log and fsimage before trying this!
Are you ready to proceed? (Y/N)
(Y or N) y
问题是:
此操作是否也会影响数据节点计算机上的数据本身?
或者只是namenode机器上的元数据?
暂无答案!
目前还没有任何答案,快来回答吧!