oiv查看fsimage

  1. hdfs oiv -i /data1/hadoop/dfs/name/current/fsimage_0000000000019372521 -o /home/hadoop/fsimage.txt

oev查看edit log

  1. hdfs oev -i edits_0000000000000000006-0000000000000000013 -o ~/edits.xml -p xml

诊断

fsck