当前位置:网站首页>Collect and handle the NameNode single node data block
Collect and handle the NameNode single node data block
2022-08-07 23:10:00 【lixia0417mul2】
We know that only one NameNode is active in the hdfs cluster, and only one NameNode provides external services at any time. Even when the HA mode is set up, one NameNode is in the Active state and the other is in the standby idle state, so for Hdfs, a single-point NameNode is always a weak point of performance.
1. The DataNode will report the new, deleted, and invalid data block information in the DataNode in the heartbeat with the NameNode (the report of these information is incrementalIn the form of reporting to the NameNode), the local memory of the NameNode will maintain an object blockMaps of the total data block, this object will maintain the information of all the data blocks in the entire cluster, in addition, the NameNode will also maintain an invalid block in the cluster., the list of damaged blocks, you can see the list of data blocks recorded by the NameNode about the entire cluster, the list of damaged data blocks and other information on the NameNode user interface.From here, we can see that the NameNode node will maintain all the information of the data blocks of the entire cluster, including those data blocks corresponding to those files, and then which Datanode the corresponding data blocks belong to, etc. It is conceivable that if there are more small files in the entire cluster, which means that under the same total amount of data, the number of data blocks will increase, and the objects such as the memory variable blockMaps that store the data blocks in the NameNode node will become larger and larger. In addition, the interaction between the Datanode and the NameNode will be required.The number of data blocks will also increase, which will lead to increased memory pressure in the NameNode and frequent gc, so this is why Hdfs does not want too many small file objects in the cluster.
In addition, hdfs fsckCommands can interact with the NameNode to output the disk block to which the file internally recorded in the NameNode belongs, the location of the damaged disk block, the DataNode to which a disk block belongs and the corresponding rack, etc., which greatly facilitates the administrator's operation and maintenance operations..
边栏推荐
- VS 配置 OpenCV (亲测可用)
- The Unity editor development, Project development
- Unity editor extension--Scene view extension
- win10安装pycuda2022
- 证券开户是什么意思?开户安全吗
- Expansion of the Unity editor - Scene view custom operations
- 2022-08-07:以下go语言代码输出什么?A:1 1;B:3 1;C:0 3;D:不能编译。 package main import ( “fmt“ “math“ ) func main
- 买股票用通达信安全吗?资金会不会被转走?
- DataNode磁盘检测服务
- 【STC15】定时器0做9-16位PWM示例解读
猜你喜欢

Unity编辑器拓展--自定义Window拓展

The expansion of the Unity editor - Inspector operations

【Untitled】

Unity editor extension - preview window extension

Unity editor extension -- Hierarchy extension

阿里云云原生数据湖体系全面解读

MySQL groups first and then takes the largest and smallest records in the group

buu web部分wp

Shell:循环语句与函数

干软件测试想涨薪,首先你的有资本才行,不然老板凭什么给你涨薪?
随机推荐
MPLS网络向SRv6网络演进
我想要开一个账户,开户安全吗
Presto Stage的生成过程
力扣200,岛屿数量
SSTI漏洞模板扫描(flask、Werkzeup)
“蔚来杯“2022牛客暑期多校训练营6 G、J、B
扁平路由匹配多级面包屑思路总结
Mind quantum 基础知识学习笔记(1)
买股票用通达信安全吗?资金会不会被转走?
The 2019 ICPC Asia Nanjing Regional Contest(A、C、K)
【2022牛客多校第六场 Z题 Game on grid】dp
kali的安装与配置
阿里云云原生数据湖体系全面解读
c语言入门---自定义类型:结构体,枚举,联合
【数据挖掘】滴滴公司数据挖掘工程师笔试题
uniapp pages.json 简单应用
MySQL先分组再取组内最大最小记录
Unity编辑器拓展--Project拓展
同花顺开户靠谱吗?开户安全吗
PLC运动控制系列之梯形速度曲线