Resolve Hadoop Name node is in safe mode
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
info Last modified by Raymond 2 years ago
copyright
This page is subject to Site terms.
comment Comments
No comments yet.
Log in with external accounts
warning Please login first to view stats information.
article
Install Hadoop 3.3.2 in WSL on Windows
article
Hive SQL - Aggregate Functions Overview with Examples
article
Apache Hive 3.1.1 Installation on Windows 10 using Windows Subsystem for Linux
article
Install HBase in WSL - Pseudo-Distributed Mode
article
Apache Hive 3.0.0 Installation on Windows 10 Step by Step Guide
Read more (52)