The read quorum doesn't apply to map-reduce - the value from the first vnode in 
the preflist will be tried, followed by the others if it is not available.  If 
an input is completely unavailable (as may be the case with 1/2 of the nodes 
down), the job will fail.  2 nodes is a bit of degenerate case anyway - 
especially if you use the default N value of 3.  When the size of the cluster 
smaller than N, there's a chance that some data could become unavailable when a 
node goes down.

Sean Cribbs <[email protected]>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On May 4, 2010, at 10:13 AM, Johnathan Loggie wrote:

> Hi,
> 
> I’m struggling to find how to set the the read quorum for a map reduce job 
> via the REST api.
> 
> The documentation doesn’t mention that this is even possible.
> I’m using ripple, and tried forcing r=1 onto the end of the query string (e.g 
> with @client = Riak::Client.new(:mapred = ‘/mapred?r=1’)) to see if this 
> resource worked like the others, but had no luck.
> 
> I have 2 riak nodes and have deliberately stopped one as if it were down or 
> disconnected.
> In this state my map reduce jobs fail to run on the node that is up and 
> running.
> 
> Can anybody help?
> Have I completely got the wrong end of the stick on this one?
> 
> Johnno
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to