Moving the NameNode to a Different Host
If the NameNode host has hardware problems and you need to move the NameNode to another host, you can do so as follows:
- If the host to which you want to move the NameNode is not in the cluster, follow the instructions in Adding a Host to the Cluster to add the host.
- Stop all cluster services.
- Make a backup of the dfs.name.dir directories on the existing NameNode host. Make sure you back up the fsimage and edits files. They should be the same across all of the directories specified by the dfs.name.dir property.
- Copy the files you backed up from dfs.name.dir directories on the old NameNode host to the host where you want to run the NameNode.
- Go to the HDFS service.
- Click the Instances tab.
- Select the checkbox next to the NameNode role instance and then click the Delete button. Click Delete again to confirm.
- In the Review configuration changes page that appears, click Skip.
- Click Add to add a NameNode role instance.
- Select the host where you want to run the NameNode and then click Continue.
- Specify the location of the dfs.name.dir directories where you copied the data on the new host, and then click Accept Changes.
- Start cluster services. After the HDFS service has started, Cloudera Manager distributes the new configuration files to the DataNodes, which will be configured with the IP address of the new NameNode host.
- Go to the HDFS service. The NameNode, Secondary NameNode, and DataNode roles should each show a process state of Started, and the HDFS service should show a status of Good.
<< Formatting the NameNode and Creating the /tmp Directory | Replacing a Disk on a DataNode Host >> | |