Simple mapreduce with 2i returns different result

Christian Dahlqvist christian at basho.com
Tue Apr 16 16:55:48 EDT 2013


Hi Mattias,

The following curl query simply counts the number of inputs, and has worked well for me in the past. Can you please run it against the cluster a couple of times and see if it also return varying number of results?

curl -XPOST http://localhost:8098/mapred 
  -H 'Content-Type: application/json' 
  -d '{"inputs":{
           "bucket":"som-bucket",
           "index":"userid_bin",
           "key":"18481123123"
       },
       "query":[{"reduce":{"language":"erlang",
                           "module":"riak_kv_mapreduce",
                           "function":"reduce_count_inputs"
                           }}]}'

Best regards,

Christian





On 16 Apr 2013, at 15:52, Mattias Sjölinder <mattias at sjolinder.se> wrote:

> 18481123123

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130416/50ca20f5/attachment.html>


More information about the riak-users mailing list