Safe mode is ON. The reported blocks 3 needs additional 2 blocks to reach the threshold 0.9990 of total blocks 5. The number of live datanodes 2 has reached the minimum number 0.
虚拟机任意目录下执行
退出安全模式 hadoop dfsadmin -safemode leave
删除丢失的block块 hdfs fsck / -delete
这个错误的原因是,丢失的block数量到达配置文件指定的阈值,hdfs开启了安全模式