Use the following instructions to decommission NodeManagers in your cluster:
On the NameNode host machine, edit the
file and add the list of NodeManager hostnames (separated by a newline character).$HADOOP_CONF_DIR/yarn.excludewhere
$HADOOP_CONF_DIRis the directory for storing the Hadoop configuration files. For example,/etc/hadoop/conf.If your cluster utilizes a
yarn.includefile, remove the decommissioned nodes from thefile on the ResourceManager host machine.$HADOOP_CONF_DIR/yarn.include![[Note]](../common/images/admon/note.png)
Note If no
yarn.includefile is specified, all NodeManagers are considered to be included in the cluster (unless excluded in theyarn.excludefile). Theyarn.resourcemanager.nodes.include-pathandyarn.resourcemanager.nodes.exclude-pathproperties inyarn-site.xmlare used to specify theyarn.includeandyarn.excludefiles.Update the ResourceManager with the new set of NodeManagers. On the ResourceManager host machine, execute the following command:
su $YARN_USER % yarn rmadmin -refreshNodes
where
$YARN_USERis the user owning the YARN services. For example,yarn.

