You can try it: start a 3 node cluster and create a file with replication 5.

The answer is that each data-node can store only one replica of a block.
So in your case you will get an exception on close() saying the file cannot
be fully replicated.

Thanks,
--Konstantin

Rakhi Khatwani wrote:
Hi,
   I just wanted to know what if we have set the replication factor greater
than the number of nodes in the cluster.
for example, i have only 3 nodes in my cluster but i set the replication
factor to 5.

will it create 3 copies and save it in each node, or can it create more than
one copy per node?

Regards,
Raakhi Khatwani

Reply via email to