报错
Safe mode is ON. The reported blocks 16 needs additional 1 blocks to reach the threshold 0.9990 of total blocks 18. The minimum number of live datanodes is not required. Safe mode will be turned off automatically once the thresholds have been reached. 54 files and directories, 18 blocks (18 replicated blocks, 0 erasure coded block groups) = 72 total filesystem object(s). Heap Memory used 120.47 MB of 158 MB Heap Memory. Max Heap Memory is 441 MB. Non Heap Memory used 52.12 MB of 53.94 MB Commited Non Heap Memory. Max Non Heap Memory is <unbounded>.
解决
步骤 1 执行命令退出安全模式:
hadoop dfsadmin -safemode leave
步骤 2执行健康检查,删除损坏掉的
block hdfs fsck / -delete