Hadoop/HBase下架节点

Hadoop集群节点下架指南

0 前言

公司某些旧机器总是出现故障,需下架此台机器,该机器部署有regionserver与datanode服务。

1 RegionServer下架

[注:在即将下架节点上操作]

bin/graceful_stop.sh hostname

2 DataNode下架

[注:在NameNode节点上操作]

2.1 添加下架文件exclude

glsx.hadoop315
glsx.hadoop319

2.2 配置hdfs.site.xml

<property>
  <name>dfs.hosts.exclude</name>
  <value>/usr/lib/hadoop-cluster/hadoop-2.3.0-cdh5.0.2/etc/hadoop/exclude</value>
</property>     

2.3 分发下架文件

sbin/distribute-exclude.sh etc/hadoop/exclude

2.4 刷新NameNode

 sbin/refresh-namenodes.sh

2.5 停止DataNode

查看hadoop dfsadmin -report  在下架成功之前是Decommission Status :  Decommission in progress
成功之后节点信息是Decommission Status : Decommissioned

如果进程仍存在,直接杀死。

2.6 删除相关配置

bigdata@master:~/software/hbase/bin$ start-hbase.sh SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/bigdata/software/hadoop/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/bigdata/software/hbase/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory] SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/bigdata/software/hadoop/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/bigdata/software/hbase/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory] localhost: running zookeeper, logging to /home/bigdata/software/hbase/bin/../logs/hbase-bigdata-zookeeper-master.out running master, logging to /home/bigdata/software/hbase/logs/hbase-bigdata-master-master.out : running regionserver, logging to /home/bigdata/software/hbase/logs/hbase-bigdata-regionserver-master.out bigdata@master:~/software/hbase/bin$ jps 107460 Jps 106118 HRegionServer 105880 HQuorumPeer bigdata@master:~/software/hbase/bin$
最新发布
03-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值