Working with safe mode
When any client performs a write operation on HDFS, the changes get recorded in the edit log. This edit log is flushed at the end of write operations and the information is synced across nodes. Once this operation is complete, the system returns a success flag to the client. This ensures consistency of data and cleaner operation execution. Similarly, name node maintains a fsimage file, which is a data structure that name node uses to keep track of what goes where. This is a checkpoint copy which is preserved on a disk. If name node crashes or fails, the disk image can be used to recover name node back to a given checkpoint. Similarly, when name node starts, it loads fsimage in memory for quick access. Since fsimage ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access