-Re: SafeModeException: Cannot delete <directory_path>. Name node is in safe mode.
Hi Abdelrahman Kamel
Your Name Node is in safe mode now. Either wait till it automatically comes out of safe mode or you can manually make it exit the safe mode by the following command
hadoop dfsadmin -safemode leave
If you cluster was not put on safe mode manually and it happened during start up then it would get out of safe mode automatically when a certain percentage of blocks satisfies minimum replication condition.
Hope it helps!
From: Abdelrahman Kamel
To: [EMAIL PROTECTED]
ReplyTo: [EMAIL PROTECTED]
Subject: SafeModeException: Cannot delete <directory_path>. Name node is in safe mode.
Sent: Oct 5, 2011 13:47
I got this exception trying to delete a directory from HDFS.
hduser@hdmaster:/usr/local/hadoop$ *bin/hadoop dfs -rmr
rmr: org.apache.hadoop.hdfs.server.namenode.*SafeModeException: Cannot
delete /user/hduser/gutenberg-output. Name node is in safe mode.*
Could anyone help me get rid of it.
Bejoy K S