Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
692 views
in Technique[技术] by (71.8m points)

hdfs - hadoop + Blocks with corrupt replicas

we have HDP cluster version 2.6.4 with ambari platform

from ambari dashboard we can see Blocks with corrupt replicas with 1

enter image description here

and also from

$ hdfs dfsadmin -report
Configured Capacity: 57734285504512 (52.51 TB)
Present Capacity: 55002945909856 (50.02 TB)
DFS Remaining: 29594344477833 (26.92 TB)
DFS Used: 25408601432023 (23.11 TB)
DFS Used%: 46.19%
Under replicated blocks: 0
Blocks with corrupt replicas: 1    <-----------------
Missing blocks: 0
Missing blocks (with replication factor 1): 0

in order to find the corrupted file we do the following

$ hdfs fsck -list-corruptfileblocks
Connecting to namenode via http://master.sys76.com:50070/fsck?ugi=hdfs&listcorruptfileblocks=1&path=%2F
The filesystem under path '/' has 0 CORRUPT files

but as we can see above we not found the file

also we did the following in order to delete the corrupted file

 hdfs fsck / -delete

but still Blocks with corrupt replicas still remain with 1

any suggestions?

question from:https://stackoverflow.com/questions/65868895/hadoop-blocks-with-corrupt-replicas

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Consider that replicas and blocks are two different concepts.

Try using command:

hdfs fsck / | egrep -v '^.+'

to find out more about unusual blocks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...