Hadoop Cluster Management fsimage and edits working mechanism insider

Source: Internet
Author: User

One

Fsiamges files are typically metadata information for the entire cluster. Every time it's modified very well memory, IO.

So the introduction of edits

File. Keep a record of each modification to the metadata, and periodically merge by secondary Namenode.

Second, the process

1.Secondary Namenode Request edits and Fsimage merge.

2.Namenode stops modification of the edits file and generates a edits.new file that stores changes to the metadata that occurred during the merge

3.Secondary Namenode Get edits files and fsimages files via HTTP GET method

4.Secondary Namenode Import the requested fsimages file into memory and follow the edits file to generate the Fsimags.ckpt file

5.Secondary namenode send fsimages.ckpt file to Namenode via HTTP Post

6.Namenode after accepting the fsimages.ckpt file, replace the original fsimages file and change the edits.new file to edits file so that the new merged fsimages file and the smaller edits file are obtained

Hadoop Cluster Management fsimage and edits working mechanism insider

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.