Sometimes, we need to replace a slave node with new hardware. For example, the slave node is not stable, more storage space or more powerful CPUs are desired, and so on. In this recipe, we will outline the steps to replace a slave node.
We assume that replacement hardware is ready for use. And for illustration purposes, we suppose slave2
needs to be replaced in this book.
Perform the following steps to replace a slave node:
Decommission the TaskTracker on the slave node with the steps outlined in the Managing TaskTracker recipe of this chapter.
Decommission the DataNode on the slave node with the steps outlined in the Decommission DataNode recipe of this chapter.
Power off the slave node and replace it with the new hardware.
Install and configure the Linux operating system on the new node with the steps outlined in the Installing the Linux operating system, Installing Java and other tools, and Configuring SSH recipes of Chapter 2, Preparing for...