If both
rack2 and datanode present in rack 1 fails then there is no chance of getting
data from it. In order to avoid such situations, we need to replicate that data
more number of times instead of replicating only thrice. This can be done by
changing the value in replication factor which is set to 3 by default..