Read here about Kontext's Cookie and Privacy policy. Dismiss

Resolve Hadoop RemoteException - Name node is in safe mode

16 views 0 comments last modified about 14 days ago Raymond Tang

lite-log hadoop hdfs

In Safe Mode, the HDFS cluster is read-only. After completion of block replication maintenance activity, the name node leaves safe mode automatically.

If you try to delete files in safe mode, the following exception may raise:

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot delete /user/hadoop/sqoop_test/blogs. Name node is in safe mode.

The above exception occurred because I was using Sqoop to load files into HDFS while deleting existing files.

We can also manually leave safe mode by using the following command:

hadoop@hdp-master:/hadoop> hdfs dfsadmin -safemode leave
Safe mode is OFF

Related pages

Configure Sqoop in a Edge Node of Hadoop Cluster

71 views   0 comments last modified about 14 days ago

This page continues with the following documentation about configuring a Hadoop multi-nodes cluster via adding a new edge node to configure administration or client tools. ...

View detail

Configure YARN and MapReduce Resources in Hadoop Cluster

12 views   0 comments last modified about 14 days ago

When configuring YARN and MapReduce in Hadoop cluster, it is very important to configure the memory and virtual processors correctly. If the configurations are incorrect, the nodes may not be able to start properly and the applications may not be able to run successfully. For example...

View detail

Configure Hadoop 3.1.0 in a Multi Node Cluster

315 views   0 comments last modified about 15 days ago

Previously, I summarized the steps to install Hadoop in a single node Windows machine. Install Hadoop 3.0.0 in Windows (Single Node) In this page, I...

View detail

Install Big Data Tools (Spark, Zeppelin, Hadoop) in Windows for Learning and Practice

158 views   2 comments last modified about 21 days ago

Are you a Windows/.NET developer and willing to learn big data concepts and tools in your Windows? If yes, you can follow the links below to install them in your PC. The installations are usually easier to do in Linux/UNIX but they are not difficult to implement in Windows either since the...

View detail

Default Ports Used by Hadoop Services (HDFS, MapReduce, YARN)

45 views   0 comments last modified about 28 days ago

This page summarizes the default ports used by Hadoop services. It is useful when configuring network interfaces in a cluster. Hadoop 3.1.0 HDFS The secondary namenode http/https server address and port. ...

View detail

Load Data into HDFS from SQL Server via Sqoop

42 views   0 comments last modified about 2 months ago

This page shows how to import data from SQL Server into Hadoop via Apache Sqoop. Prerequisites Please follow the link below to install Sqoop in your machine if you don’t have one environment ready. ...

View detail

Add comment

Please login first to add comments.  Log in New user?  Register

Comments (0)

No comments yet.