HDFS cluster is rack aware.
Client is in different node than of datanode,
but Same rack contains one or more datanodes.
In this case first preference should be given to select 'rack-local' node.
Currently, since no Node in clusterMap corresponds to client's location, blockplacement policy choosing a random node as local node and proceeding for further placements.