How Can You Add And Remove Nodes From The Hadoop Cluster?
Answer»
To ADD new nodes to the HDFS cluster, the hostnames should be added to the slaves file and then DataNode and TASKTRACKER should be STARTED on the new node.
To remove or DECOMMISSION nodes from the HDFS cluster, the hostnames should be removed from the slaves file and –refreshNodes should be executed.