No image directories available reasons for errors that occur when using -importcheckpoint

1. When using the restoring metadata namenode hdfs namenode -importcheckpoint command, given

 

 the reason:

We need to set the hdfs-site.xml file

<property>//检查的时间周期
  <name>dfs.namenode.checkpoint.period</name>
  <value>120</value>
</property>

<property>//明确namenode的位置
  <name>dfs.namenode.name.dir</name>
  <value>/opt/module/hadoop-2.7.2/data/tmp/dfs/name</value>
</property>

 

Guess you like

Origin www.cnblogs.com/yangxusun9/p/12342991.html