In Hadoop2.6.0 I use command:
./bin/hadoop fs -rmr /output
Then I got:
rmr: Cannot delete /output. Name node is in safe mode.
I use command:
hdfs dfsadmin -safemode leave
to resolve this problem, and I got the result:
Safe mode is OFF
But when I delete the file
/output
, I got the same error:rmr: Cannot delete /output. Name node is in safe mode.
I see following in the logs:
2015-04-07 03:10:18,362 INFO org.apache.hadoop.hdfs.StateChange: STATE* Safe mode is ON. Resources are low on NN.
Please add or free up more resources then turn off safe mode manually.
NOTE: If you turn off safe mode before adding resources, the NN will immediately return to safe mode.
Use "hdfs dfsadmin -safemode leave" to turn safe mode off.
How Can I handle this problem?