Edit the configuration files on the ResourceManager host machine and add the details of the new set of NodeManagers.
On the ResourceManager host machine, edit the
<HADOOP_CONF_DIR>/yarn.excludefile and add the list of NodeManager hostnames (separated by a newline character).
<HADOOP_CONF_DIR>is the directory for storing the Hadoop configuration files. For example,
If your cluster utilizes a
yarn.includefile, remove the decommissioned nodes from the
<HADOOP_CONF_DIR>/yarn.includefile on the ResourceManager host machine.Note
yarn.includefile is specified, all NodeManagers are considered to be included in the cluster (unless excluded in the
yarn-site.xmlare used to specify the
Update the ResourceManager with the new set of NodeManagers. On the ResourceManager
host machine, execute the following command:
su <YARN_USER> yarn rmadmin -refreshNodes
<YARN_USER>is the user who owns the YARN services, for example,