1) Process 2) FSImage and Edits Nodenode is the brain of HDFS. It maintains the directory tree of the entire file system and all the files and directories in the directory tree. This information is stored in the file system in two types of files: one is the namespace image (also called file system image, File System Image, FSImage), which is a complete snapshot of HDFS metadata. Each time NameNode starts, the latest namespace image is loaded by default. The other is the edit log of the command space image. The FSImage file is actually a permanent checkpoint of the file system metadata, but not every write operation will update this file. Because FSImage is a large file, if write operations are performed frequently, the system will run extremely slowly. The solution is that NameNode only writes the changes in advance to the log, that is, writes the edit log of the namespace image. As time goes by, the edit log will become larger and larger. Once a failure occurs, it will take a lot of time to roll back the operation. So just like traditional relational databases, it is necessary to merge FSImage and edit log regularly. If the merge operation is performed by NameNode, then NameNode may not be able to provide sufficient resources when providing services for the cluster. In order to completely solve this problem, SecondaryNameNode is born. 3) Phase 1: namenode startup
4) Phase 2: Secondary NameNode Work
By default, this process occurs once an hour, or when the NameNode edit log file reaches the default size of 64MB. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Detailed explanation of how to use binlog2sql to quickly roll back after MySQL misoperation
>>: How to build a React project with Vite
The action of the form is different from the URL j...
In actual projects, the database needs to be back...
1. What is Docker Secret 1. Scenario display We k...
1. First, an error message is reported when assoc...
1. Online Text Generator BlindTextGenerator: For ...
Table of contents 1 Indicators in stress testing ...
<br />In general guestbooks, forums and othe...
Table of contents What to do when registering an ...
My recommendation Solution for coexistence of mul...
WeChat applet uses scroll-view to achieve left-ri...
We all know that the commonly used positioning me...
This article shares a sharing sidebar implemented...
This article shares the installation and configur...
Preface Although some love in this world has a pr...
Today I received a disk alarm exception. The 50G ...