Created 02-15-2022 10:37 PM
In my hadoop system, there are some files which are under replicated.
hdfs dfs -setrep -w 2 /user/oozie/tmp/test2/workflow.xml
Waiting for /user/oozie/tmp/test2/workflow.xml..............................................................................................................................................................................................................................
I wait the whole day, but it keeps waiting. it its a small file.
this is my env:
and I use fsck and recoverLease, but not helpful.
Why hdfs dfs -setrep -w 2 / keeps waiting?
Created 02-15-2022 11:57 PM
Can you run fsck with -blocks option to get the datanode address.
hadoop fsck /user/oozie/tmp/test2/workflow.xml -files -blocks
Login to the datanode and check/grep for that particular blockId/filename on the datanode log. Also grep for blockId/filename on the namenode log.