This exactly true.
Thanks for correcting, Brian.

--Konstantin

Brian Bockelman wrote:

On Aug 12, 2009, at 2:11 PM, Konstantin Shvachko wrote:

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.


I'm not sure if that's true. You only get an exception if the system cannot provide the minimum replication factor.

I.e, if you ask for 5 replicas and the minimum replicas is 3, then you only get an exception if HDFS can't meet 3 replicas.

Am I recalling this wrong?  We have "discovered" this fact at least once :)

Brian

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