change number of data nodes in Hadoop
问题 How to change the number of data nodes, that is disable and enable certain data nodes to test scalability? To be more clear, I have 4 data nodes, and I want to experiment the performance with 1, 2, 3 and 4 data nodes one by one. Would it be possible just updating slaves file in namenode? 回答1: The correct way to temporarily decommission a node: Create an "exclude file". This lists the hosts, one per line, that you wish to remove. Set dfs.hosts.exclude and mapred.hosts.exclude to the location