Problem Description :
When uploading files to HDFs with Hadoop, the Name node is in Safe Mode error, upload failed
How to resolve :
"Command"Hadoop dfsadmin-safemode leave
"Note" Several parameter meanings of safe mode
Enter---means enter safe mode
Leave---means leaving safe mode
The get----indicates whether to view the current security mode
Wait---means waiting until the end of Safe mode
Introduction to Safe Mode :
When the Distributed file system starts, there will be a security mode at the beginning, and when the Distributed file system is in Safe mode, the contents of the file system are not allowed to be modified or deleted until the end of safe mode. The Safe mode is to check the validity of the data blocks on each datanode when the system is started, and to copy or delete some data blocks according to the policy. The run time can also be entered in safe mode through commands. In practice, when the system starts to modify and delete files will also have a safe mode does not allow the modification of the error prompt, only need to wait a while.
You can also manually leave Safe mode by using the command above.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Name node is in Safe mode. Error Handling Mode Hadoop