Hadoop热添加删除节点的步骤

发布时间:2021-09-12

  这篇文章主要讲解了“Hadoop热添加删除节点的步骤”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着陆零云小编的思路慢慢深入,一起来研究和学习“Hadoop热添加删除节点的步骤”吧!

  添加节点
[hadoop]#./bin/hadoop-daemon.shstartdatanode[hadoop]#./bin/hadoop-daemon.shstarttasktracker(hadoop1)[hadoop]#./bin/yarn-daemon.shstartnodemanager(hadoop2)[hadoop]#./bin/start-balancer.sh[hadoop]#./bin/start-balancer.sh-threshold5 dfs.balance.bandwidthPerSec 1048576 Specifiesthemaximumamountofbandwidththateachdatanode canutilizeforthebalancingpurposeintermof thenumberofbytespersecond. start-balancer.sh-threshold1 dfs.hosts.exclude /data/soft/hadoop/conf/excludes Namesafilethatcontainsalistofhoststhatare notpermittedtoconnecttothenamenode.Thefullpathnameofthe filemustbespecified.Ifthevalueisempty,nohostsare excluded.slave-003 slave-004[;hadoop]#./bin/hadoopdfsadmin-refreshNodes[;hadoop]#./bin/hadoopdfsadmin-report正在执行Decommission,会显示: DecommissionStatus:Decommissioninprogress 执行完毕后,会显示: DecommissionStatus:Decommissioned5.再次编辑excludes文件
一旦完成了机器下架,它们就可以从excludes文件移除了
登录要下架的机器,会发现DataNode进程没有了,但是TaskTracker依然存在,需要手工处理一下

  感谢各位的阅读,以上就是“Hadoop热添加删除节点的步骤”的内容了,经过本文的学习后,相信大家对Hadoop热添加删除节点的步骤这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是陆零云,小编将为大家推送更多相关知识点的文章,欢迎关注!

  

注册即送1000元现金券