• 欢迎光临~

NameNode启动问题:Failed to load an FSImage file!

开发技术 开发技术 2022-01-23 207次浏览

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

NameNode启动问题:Failed to load an FSImage file!

 

 NameNode启动问题:Failed to load an FSImage file!

 

程序员灯塔
转载请注明原文链接:NameNode启动问题:Failed to load an FSImage file!
喜欢 (0)
违法和不良信息举报电话:022-22558618 举报邮箱:dljd@tidljd.com