- 无论是在Hadoop集群中添加机器和删除机器,都无需停机,整个服务不中断。
- master/conf/slaves 添加 newnodename
- master start-all.sh
safe mode when delete node:
- 创建 master/conf/nn-excluded-list
- 添加 deletednodename
- 修改 master/conf/hdfs-site.xml
<property><name>dfs.hosts.exclude</name>
<value>conf/nn-excluded-list</value>
</property>
- master: $HADOOP_HOME/bin/hadoop dfsadmin -refreshNodes
- HDFS Cluster : hp3机器已经处于Decommission In Progress状态 ; MR 可能还在 in service
- 等待hp3中datanode的Decommission操作完成以后,再到hp3机器中关闭所有的Hadoop进程。
时间: 2024-11-09 05:03:34