停电后Hadoop数据节点关闭

时间:2019-06-14 19:10:16

标签: hadoop

断电后Datanode处于关闭状态,很少文件被破坏

我已删除损坏的文件并尝试启动datanode hdfs fsck /-删除

但是出现此错误

2019-06-12 14:18:55,659 INFO org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl: Caught exception while scanning /home/hadoop/hadoopdata/hdfs/datanode/current. Will throw later.
ExitCodeException exitCode=1: du: cannot access ‘/home/hadoop/hadoopdata/hdfs/datanode/current/BP-354460020-192.168.42.27-1473368397287/current/finalized/subdir122/subdir192/blk_1098532097_24912327.meta’: Structure needs cleaning
du: cannot access ‘/home/hadoop/hadoopdata/hdfs/datanode/current/BP-354460020-192.168.42.27-1473368397287/current/finalized/subdir122/subdir192/blk_1098532097’: Structure needs cleaning
du: cannot access ‘/home/hadoop/hadoopdata/hdfs/datanode/current/BP-354460020-192.168.42.27-1473368397287/current/finalized/subdir122/subdir192/blk_1098532113_24912343.meta’: Structure needs cleaning
2019-06-12 14:18:55,671 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Ending block pool service for: Block pool <registering> (Datanode Uuid unassigned) service to hadoop1/192.168.42.27:9000
2019-06-12 14:18:55,672 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Removed Block pool <registering> (Datanode Uuid unassigned)
2019-06-12 14:18:57,673 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode
2019-06-12 14:18:57,675 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 0
2019-06-12 14:18:57,693 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at hadoop18/192.168.42.57
************************************************************/

有人可以帮忙解决问题

0 个答案:

没有答案