![this image shows how replication process is done [] [1]](http://qaru.siteundefined)
You can see that when namenode instructs the datanode to store data. The first replica is stored on the local machine, and the other two replicas are made on a different rack, etc.
If any replica fails, data is saved from another replica. The chances of failure of each replica are like falling a fan on the head during sleep: p ie, there is less chance for this.
Mayur sonawala
source share