SafeModeException: Name node is in safe mode

classorg_1_1apache_1_1hadoop_1_1hdfs_1_1server_1_1namenode_1_1_safe_mode_exception

org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/...../test. Name node is in safe mode.

In order to forcefully let the namenode leave safemode, following command should be executed:

$ bin/hadoop dfsadmin -safemode leave

-safemode isn’t a sub-command for hadoop fs, but it is of hadoop dfsadmin.

Run following command so that any inconsistencies in the hdfs might be sorted out.

$ hadoop fsck

Reference:

http://hadoop.apache.org/docs/stable/hdfs_user_guide.html#Safemode

 https://www.inkling.com/read/hadoop-definitive-guide-tom-white-3rd/chapter-10/hdfs

Advertisements

One Response to SafeModeException: Name node is in safe mode

  1. Somebody necessarily lend a hand to make seriously posts I might state.
    This is the first time I frequented your website page and to this point?
    I amazed with the analysis you made to make this particular post extraordinary.
    Fantastic activity!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: