开发者

Dynamic Nodes in Hadoop

开发者 https://www.devze.com 2022-12-17 07:50 出处:网络
Is it possible to add new nodes 开发者_Go百科to Hadoop after it is started? I know that you can remove nodes (as that the master tends to keep tabs on the node state).You can add new nodes by just boo

Is it possible to add new nodes 开发者_Go百科to Hadoop after it is started? I know that you can remove nodes (as that the master tends to keep tabs on the node state).


You can add new nodes by just booting up a new one with a proper hadoop-site.xml (one that points back to the master namenode and jobtracker).

That said, removing nodes is a really bad idea without rebalancing your hdfs file blocks to prevent removing all the dupes of a given block.

If you drop three datanodes, you could lose all the dupes for a given block (that has a replication of 3, the default), thus corrupting the file the block belongs too. Removing two nodes could leave you with one replica, and it could be corrupt (known to happen with dying disks).


i think as long as you don't use them as datanodes your wouldn't have an issue ... of course the data locality aspect of hadoop is gone at that point.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号