Administering HDFS
Also available as:
PDF

Prerequisites to decommission slave nodes

Make sure the appropriate properties are defined in the hdfs-site.xml file and yarn-site.xml files.

  • Ensure that the following property is defined in your hdfs-site.xml file.

    <property> 
     <name>dfs.hosts.exclude</name> 
     <value><HADOOP_CONF_DIR>/dfs.exclude</value>
     <final>true</final> 
     </property> 

    where <HADOOP_CONF_DIR> is the directory for storing the Hadoop configuration files. For example, /etc/hadoop/conf.

  • Ensure that the following property is defined in your yarn-site.xml file.

    <property> 
     <name>yarn.resourcemanager.nodes.exclude-path</name> 
     <value><HADOOP_CONF_DIR>/yarn.exclude</value>
     <final>true</final> 
    </property>

    where <HADOOP_CONF_DIR> is the directory for storing the Hadoop configuration files. For example, /etc/hadoop/conf.