기타/빅데이터 - Hadoop

Hadoop # org.apache.hadoop.hdfs.server.namenode.SafeModeException

둥굴둥굴둥굴레차 2021. 8. 26. 14:36

상황

org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /user/hadoop/invertedindex_test_out. Name node is in safe mode. The reported blocks 3 has reached the threshold 0.9990 of total blocks 3. The minimum number of live datanodes is not required. In safe mode extension. Safe mode will be turned off automatically in 19 seconds. NamenodeHostName:localhost

 

분석

Hadoop은 비정상적 종료시 safe 모드로 이동하게된다.

아래 명령어를 통해 safe모드에서 떠나버리자.

$ hadoop dfsadmin -safemode leave

 

결과