Apache Hadoop: Resolve “org.apache.hadoop.hdfs.server.namenode.SafeModeException”

The org.apache.hadoop.hdfs.server.namenode.SafeModeException
exception is thrown when the NameNode is in safe mode. Safe mode is a read-only mode for the Hadoop Distributed File System (HDFS) cluster. In safe mode, the NameNode does not allow any modifications to the file system or blocks.
There are a few reasons why the NameNode might enter safe mode:
- The NameNode is starting up for the first time.
- The NameNode has been manually put into safe mode.
- The NameNode has detected a problem with the file system.
Here is an example of the error message that you might see:

How to resolve the exception
To resolve the org.apache.hadoop.hdfs.server.namenode.SafeModeException
exception, you need to take the NameNode out of safe mode. You can do this by running the following command:
hadoop dfsadmin -safemode leave

Things to keep in mind
Here are some additional things to keep in mind:
- The NameNode will automatically leave safe mode once it has verified that the file system is healthy.
- You should not make any modifications to the file system while the NameNode is in safe mode.
Put the NameNode back in safe mode
If you need to make modifications to the file system, you can put the NameNode into safe mode manually by running the following command:
hadoop dfsadmin -safemode enter

The org.apache.hadoop.hdfs.server.namenode.SafeModeException
exception can be a frustrating problem, but it is usually easy to resolve. By following the steps outlined in this post, you should be able to get the NameNode out of safe mode and start using HDFS again.
12 Comments
Apache Hadoop: Resolve “org.apache.hadoop.hdfs.server.namenode.SafeModeException” – ashwin.cloud
lckqfpoqq http://www.grv1t898r3mrxdlie25b7848o86ru961s.org/
alckqfpoqq
[url=http://www.grv1t898r3mrxdlie25b7848o86ru961s.org/]ulckqfpoqq[/url]
http://www.huili-pcsheet.com
Reciprocating Lifter
Continuous Vertical Elevator
Factory of Aluminum Alloy Flat/Tin/Tile/Pitched Rooftop/Ground/Farmland/Carport/Greenhouse/Agriculture Photovoltaic Panel Solar Mounting Rack Brackets
Galvanized Steel Solar Panel Support Adjustable Brackets for Flat Roof PV Mounting/ Motorhome
Automated Pallet Conveyor Systems
Solar Panel Wall/Tilting Mounting Brackets C Channel Profile Cold Formed Hot Dip Galvanized for Metal Roof
Cnc Stepper Motor
Composite Pole
http://www.fines.co.jp
Composite Utility Pole
Elmo Servo Drives
Composite Utility Pole
Stepper Products
Passo piccolo Har-
Stainless Steel Electric Kettle
http://www.profkom.timacad.ru
Built-in Cooker
Rifornimento laboratorio
Gomma piuma HDPE
Electric Kettle
R-F775 PCB
AP8545R Rigid-Flex PCB
http://www.xrpro.or.kr
medical implant supplier
Proximal femur interlocking nail manufacturer
TU-768 Rigid-Flex PCB
Licensed medical device supplier
Planetary Gearbox Brushless Motor
hotpantz.kinnikubaka.com
Messenger Bag
Mens Sport Bag
Brushed Motor
Spur Gearbox Brushless Motor
Leather Crossbody Bag
Bear Paw Solar Pathway Lamp
Online Cnc Service
Aluminum Shell
trafficvision.nl
Cnc Hardware
7 2 KW AC EV Charger Socket Wallbox
What are the main battery materials used by new energy vehicles
Cargo Tie Down Rings
D Ring Anchor Point
Th cause of the abnormal noise of the steering pump
Track Accessories
http://www.treatec.myjino.ru
CNC Machining Multi Groove Motor Timing Belt Pulley
auto spare parts car brake system brake pads for mercedes benz front 0014201020
Type 2 Plug
Ccs Connector For Rapid Charging
Silicone Rubber Tubing Sleeves
Silicone Rubber Sleeving
speelmrgreen.nl
Silicone Cable Sleeve
3phase Model 2 Portable Charger
50cc Atv
Machine for Spiral Wound Gasket Metal Ring
Kammprofile Grooving Gasket Machine
Spiral Wound Gasket Machines
Side By Side Atv
dasanms.com
125cc Atv
PVC Marble Wallpaper
Sachet Water Machine
Blister Packing Machine
Machine To Make Gummies
Self Adhesive Marble Wallpaper
Marble Wallpaper for Home
company.fujispo.com
General Anti-slip Tape
ningborotary.com
Eva Shoes Mould
Automatic Eva Foaming Injection Moulding Machine
Anti-slip Tape
Anti-slip Reflective Tape
Energy Save EVA Shoes Making Machine