bug宝典 hadoop篇 /hadoop/hdfs/data is in an inconsistent state: file VERSION has cTime missing.

原本2个datanode,现在只看到了一个
1
从下图也可以看到只有一个live nodes,但是也没有dead node啊。
2
检查进程, 缺少DataNode

[hadoop@dashuju172 ~]$ jps
48099 Main
53456 NodeManager
48363 Jps
48185 Main
54200 HRegionServer
53264 QuorumPeerMain

检查hadoop的日志

2017-02-20 09:52:49,741 WARN org.apache.hadoop.hdfs.server.common.Storage: org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /home/hadoop/platform/hadoop/hdfs/data is in an inconsistent state: file VERSION has cTime missing.
2017-02-20 09:52:49,742 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: 
Initialization failed for Block pool <registering> (Datanode Uuid unassigned) service to dashuju174/192.168.5.174:9000. Exiting. 
java.io.IOException: All specified directories are failed to load.
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:478)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.initStorage(DataNode.java:1338)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.initBlockPool(DataNode.java:1304)
    at org.apache.hadoop.hdfs.server.datanode.BPOfferService.verifyAndSetNamespaceInfo(BPOfferService.java:314)
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.connectToNNAndHandshake(BPServiceActor.java:226)
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:867)
    at java.lang.Thread.run(Thread.java:745)
2017-02-20 09:52:49,745 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Ending block pool service for: 
Block pool <registering> (Datanode Uuid unassigned) service to dashuju174/192.168.5.174:9000
2017-02-20 09:52:49,846 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Removed Block pool <registering> (Datanode Uuid unassigned)
2017-02-20 09:52:51,847 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode
2017-02-20 09:52:51,850 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 0
2017-02-20 09:52:51,852 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: 

检查datanode和namenode中
/home/hadoop/platform/hadoop/hdfs/name/current
/home/hadoop/platform/hadoop/hdfs/data/current中VERSION文件中clusterID
三台服务器是一致的啊,这就更奇怪了。
3
再看看FATAL前面的一句警告
WARN org.apache.hadoop.hdfs.server.common.Storage: org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /home/hadoop/platform/hadoop/hdfs/data is in an inconsistent state: file VERSION has cTime missing.
检查172的VERSION中确实没有cTime,修改后,执行start-dfs.sh,hadoop正常启动
4

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

warrah

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值