#Hadoop #HDFS in Safemode, here’s how to get out of it.

It happens once in a while. When you are performing an operating with HDFS like adding new data you may see this message:

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
put: Cannot create directory /users/txt6. Name node is in safe mode.

Safemode in HDFS can be switched off with one command:

hdfs dfsadmin -safemode leave

Once you’re run that command you will be able put data in to HDFS again.

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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: