Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - SafeModeException: Cannot delete <directory_path>. Name node is in safe mode.


Copy link to this message
-
Re: SafeModeException: Cannot delete <directory_path>. Name node is in safe mode.
bejoy.hadoop@... 2011-10-05, 08:36
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!
------Original Message------
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

Hi all,

I got this exception trying to delete a directory from HDFS.

hduser@hdmaster:/usr/local/hadoop$ *bin/hadoop dfs -rmr
/user/hduser/gutenberg-output*
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.
Thanks.
--
Abdelrahman Kamel

Regards
Bejoy K S