当前位置:网站首页>Synchronization mechanism of dual namenodes
Synchronization mechanism of dual namenodes
2022-06-27 16:56:00 【Just like^_^】
Preface :Hadoop2.0 Based on JournalNode The double NameNode Metadata synchronization mechanism
Log nodes (JournalNode) The concept and function of
JournalNode yes HA colony ( High availability cluster ,HighAvailabilityCluster) in Active NameNode(ANN, Activity name node ) and StandBy NameNode(SNN, Alternate name node ) Edit logs between Edits and HDFS The transmission medium for metadata sharing .
The main functions are : For two NameNode Sharing data between , sync .
The process
Active Namenode Go to Journal Nodes Write in EditLog data
StandBy Namenode Again from Journal Nodes Read from EditLog Data synchronization
Log manager (QJM) The concept and working principle of
Concept :QJM It consists of multiple log nodes JournalNodes(JN) Composed of JournalNode colony , Mainly used for storage EditLog, Generally, an odd number of JournalNodes, Need at least 3 individual , Every JournalNode Save the same EditLog copy .
be based on QJM Data synchronization mechanism of shared storage :
When Active NameNode Make any changes to the namespace , It needs to be told JournalNodes Most of the clusters ( More than half ) Of JournalNodes process
and Standby NameNode Be responsible for observing JournalNodes The change of , Have the ability to learn from JournalNodes Read from Active NameNode Messages sent , Keep monitoring EditLog The change of , And update its internal namespace , Keep monitoring EditLog The change of , And update its internal namespace
once Active NameNode Encounters an error ,Standby NameNode Need to have been from JournalNodes Read all in EditLog journal , Ensure that before the failover occurs NameNodes The state of has been fully synchronized , then ,Standby NameNode Switch to Active state
边栏推荐
- Hierarchical clustering and case analysis
- Mode setting of pulseaudio (21)
- Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
- QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
- Construction and management practice of ByteDance buried point data flow
- After the mobile phone, it was reported that Samsung also cut the output of TV and other home appliance product lines
- Determine the maximum number of specific words in a string
- Pragma once Usage Summary
- d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download
- Practice of constructing ten billion relationship knowledge map based on Nebula graph
猜你喜欢
Julia constructs diagonal matrix
开源二三事|ShardingSphere 与 Database Mesh 之间不得不说的那些事
Leetcode daily practice (longest substring without repeated characters)
Data center table reports realize customized statistics, overtime leave summary record sharing
3.3 one of the fixed number of cycles
Redis Series 2: data persistence improves availability
事件监听机制
The two trump brand products of Langjiu are resonating in Chengdu, continuously driving the consumption wave of bottled liquor
2022年中国音频市场年度综合分析
Practice of constructing ten billion relationship knowledge map based on Nebula graph
随机推荐
Impressive questions
[pygame Games] ce jeu "eat Everything" est fantastique? Tu manges tout? (avec code source gratuit)
Four characteristics of transactions
LeetCode 124. Binary tree maximum path sum - binary tree series question 8
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
Extract field year / quarter effect based on date
Practice of constructing ten billion relationship knowledge map based on Nebula graph
What is the level 3 password complexity of ISO? How often is it replaced?
【Pygame小游戏】这款“吃掉一切”游戏简直奇葩了?通通都吃掉嘛?(附源码免费领)
国家食品安全风险评估中心:不要盲目片面追捧标签为“零添加”“纯天然”食品
QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
Source NAT address translation and server mapping web page configuration of firewall Foundation
The interview lasted for half a year. Last month, I successfully got Alibaba p7offer. It was all because I chewed the latest interview questions in 2020!
Deeply digitise, lead cloud nativity and serve more developers
事务的隔离级别详解
IDE Eval reset unlimited trial reset
Unity shadow shadow pancaking
Cesium realizes satellite orbit detour
List转Table
字节跳动埋点数据流建设与治理实践