logs中的详细错误为:
bug:ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint
解决方案:
需要在所有节点的/opt/hadoop/etc/hadoop/hdfs-site.xml中添加:
<property>
<name>hadoop.tmp.dir</name>
<value>file:/opt/hadoop/tmp</value>
</property>
删除所有节点的tmp目录
rm -r /opt/hadoop/tmp
重启:
hdfs namenode -format
sbin/start-all.sh