当前位置:网站首页>CDH5删除数据节点
CDH5删除数据节点
2022-04-21 13:46:00 【post_yuan】
本文介绍如何在CDH Hadoop集群中动态删除数据节点。在做动态删除数据节点之前我们已经有一套CDH集群环境。下面步骤为删除一个数据节点的步骤,
注:在线删除节点尽量一个节点一个节点进行删除,删除一个节点后进行必要的检查。如果一次删除较多的节点,可能会导致丢失数据块的问题。
1. 选择要删除的节点
选择菜单栏"主机",勾选要删除的节点

2. 停止主机上的所有角色
勾选节点后,从"已选定的操作"下拉框中,选择"停止主机上的角色"
完成之后可以看到节点上的所有角色处于停止状态

3. 解除授权
勾选节点后,从"已选定的操作"下拉框中,选择"Begin Maintenance(Suppress Alerts/Decommission)"
完成之后可以看到状态变为"已解除授权"



4. 从集群中删除
勾选节点后,从"已选定的操作"下拉框中,选择"从集群中删除"
完成 之后集群中看到此节点,但CM中仍然可以看到此节点



5. 从CM中删除
勾选节点后,从"已选定的操作"下拉框中,选择"Remove From Cloudera Manager"
完成之后CM页面不再看到此节点


6. 重新部署客户端


7. 验证是否丢失块
删除节点后,我们最关心的数据有无丢失,可以通过hadoop fsck /命令检查,如果输出如以下内容即代表无数据块丢失。
....................................................................Status: HEALTHY
Total size: 10356256081639 B (Total open files size: 996754639 B)
Total dirs: 280130
Total files: 453468
Total symlinks: 0 (Files currently being written: 548)
Total blocks (validated): 458431 (avg. block size 22590653 B) (Total open file blocks (not validated): 431)
Minimally replicated blocks: 458431 (100.0 %)
Over-replicated blocks: 0 (0.0 %)
Under-replicated blocks: 0 (0.0 %)
Mis-replicated blocks: 0 (0.0 %)
Default replication factor: 3
Average block replication: 3.0
Corrupt blocks: 0
Missing replicas: 0 (0.0 %)
Number of data-nodes: 18
Number of racks: 1
FSCK ended at Wed Jun 10 14:12:04 CST 2020 in 5169 milliseconds
版权声明
本文为[post_yuan]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Post_Yuan/article/details/106664362
边栏推荐
- Analysis of several major reasons for the slow use of computers
- Tailwind核心理念——响应式设计
- Longest ascending subsequence (2) (greedy + dichotomy)
- Hcip road OSPF expansion configuration
- Getting started with Xcode cloud: pull request (PR) workflow
- Use of hystrix
- Work function of boost ASIO
- 机器学习笔记 - Moore-Penrose 伪逆
- String - 1. Longueur de la chaîne (10 points) La Bibliothèque de fonctions standard du langage C comprend une fonction strlen qui calcule la longueur de la chaîne. Comme exercice, nous écrivons nous -
- 實現隨機標簽,字體大小、顏色隨機顯示
猜你喜欢

nmap使用

Achieve random labels, font size, color random display

Industry video super resolution new benchmark, Kwai & Dalian research, boarded CVPR 2022

前馈神经网络

STM32单片机初学5-IIC通信驱动OLED屏幕

Establishment of binary tree and its cueing

Longest ascending subsequence (2) (greedy + dichotomy)

【栈和队列专题】—— 双队列模拟栈

微信隐藏功能系列:微信定时提醒,2个步骤,让忙碌中的自己松口气

Number II that occurs only once (hash, bit operation, logic circuit, finite state automata)
随机推荐
建议:ALT+X 标注已标注的区域,是否可以取消标注呢?
Work function of boost ASIO
Stm32cupemx installation
Forced to choose an outsourcing company
SECOND: Sparsely Embedded Convolutional Detection
工具函数---从地址栏中获取参数
实现随机标签,字体大小、颜色随机显示
How to uninstall openjdk and install Oracle JDK under CentOS
通过区块划分提高随机生成圆球干涉检查的效率
国际物流集运系统源码,海外仓储跨境转运系统源码
Idea automatically generates unit test classes
工具函数---日期格式化
Number of effective triangles (double pointer (reverse scanning) + bisection)
Chris LATTNER, father of llvm: the golden age of compilers
一份很棒的外设驱动库!(基于STM32F4)
How many insurance evaluation companies are there in Haikou? Where is it specificly? Where can I find it?
echart常见的配置项(线、区域、文本)
Suggestion: Alt + X marks the marked area. Can I cancel the marking?
滚动条样式修改
关于`Object.clone()`子类不能调用的思考