October 2018
Beginner
220 pages
5h 33m
English
When a NameNode starts, it looks for FSImage and loads it in memory, then it looks for past edit logs and applies them on FSImage, creating a new FSImage. After this process is complete, the NameNode starts service requests over HTTP and other protocols. Usually, DataNodes hold the information pertaining to the location of blocks; when a NameNode loads up, DataNodes provide this information to the NameNode. This is the time when the system runs in safe mode. Safe Mode is exited when the dfs.replication.min value for each block is met.
HDFS provides a command to check if a given filesystem is running in safe mode or not:
hrishikesh@base0:/$ ./bin/hadoop dfsadmin -safemode get
This should provide you the information of whether safe ...
Read now
Unlock full access