I have a riak bucket which contains roughly 16 million records. I'm trying to run a simple count over all the keys in the bucket:

curl -v -d '{"inputs":"mybucket",
             "timeout": 86400000,
             "query":[
               {"map":{
                 "language":"erlang",
                 "module":"riak_kv_mapreduce",
                 "function":"map_identity"}
               },
               {"reduce":{
                  "language":"erlang",
                   "module":"riak_kv_mapreduce",
                   "function":"reduce_count_inputs"}
               }
]}' -H "Content-Type: application/json" http://riak01:8098/mapred

However, I receive the following error, after a few minutes of spinning:
{"phase":0,"error":"[{vnode_proxy_timeout,{2... <<truncated for clarity, rest at https://gist.github.com/jstrutz/b89efb6de825255135fe >>

I realize mapping over all the keys in a bucket is not ideal, but I would like to be able to do so in a pinch, even if it means tweaking timeouts and such. I'm running riak 1.4.2.

Thanks,
-Jason

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

Reply via email to