NameNode启动问题:Failed to load an FSImage file!
2022-01-23 13:35:53,807 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
java.io.IOException: Failed to load an FSImage file!
解决方法:删除大小为0的映射文件
[root@master lib]# find / -name dfs
/usr/local/hadoop/tmp/dfs
[root@master lib]# cd /usr/local/hadoop/tmp/dfs
[root@master dfs]# ll
total 0
drwx------ 3 root root 38 Jan 22 12:08 data
drwxr-xr-x 3 root root 20 Jan 23 13:35 name
drwxr-xr-x 3 root root 38 Jan 23 13:36 namesecondary
[root@master dfs]# cd name
[root@master name]# ll
total 12
drwxr-xr-x 2 root root 8192 Jan 22 12:51 current
[root@master name]# cd current/
[root@master current]# pwd
/usr/local/hadoop/tmp/dfs/name/current