I hope you are doing good.

Can you try to configure rack awareness in Hadoop-1.X version by referring to the steps below: 
  • Stop all the daemons running.
  • Create a topology data file anywhere in Master node (NameNode) 
Command: vi toplogy.data
Mention your slave nodes ( DataNodes) relative to their rack into topology.data- as follows: /rack1 /rack1 /rack2 /rack2 /rack3
  • Create a topology.sh script file 
Command: vi topology.sh

Place the below lines in it.

while [ $# -gt 0 ] ; do
   exec< /home/hduser/topology.data
   while read line ; do
       ar=( $line )
       if [ "${ar[0]}" = "$nodeArg" ] ; then
   if [ -z "$result" ]; then
     echo -n "/default/rack "
     echo -n "$result "
  • Add the below property into core-site.xml of Master node only 
  • Start the Hadoop cluster. 
Command: start-dfs.sh
  • Check the Hadoop admin report to see if the cluster is aware of the rack. 
Command: hadoop dfsadmin -report 

Please try it and let me know if this helps you.