Stop HDFS using the instructions on this page.
Add the following properties to
core-site.xml
:<property> <name>topology.script.file.name</name> <value>/etc/hadoop/conf/rack-topology.sh</value> </property> <property> <name>topology.script.number.args</name> <value>1</value> </property>