Map Reduce with Data Types

Kyle Patterson kyle.patterson at sqor.com
Wed Dec 10 20:35:15 EST 2014


I can't get map reduce to work with the new data types.
I have a bucket type as defined below:
riak-admin bucket-type create map '{"props":{"datatype":"map"}}

There seems to be a problem going from the input phase to the map/reduce.
I'm getting notfound errors for objects that exist.

While the normal list of input tuples might look like [{<<"bucket">>,
<<"key">>}],
for data-type lookups I'm guessing (based on the src and how bucket/key
pairs for data types are defined elsewhere) should look like:
[{{<<"type">>, <<"bucket">>}, <<"key">>}]?


mapred(Pid, [{{<<"map">>, <<"articles">>},
<<"7bdbd2da-1463-46f8-b750-6f813700b28b">>}], [{map, {modfun,
'riak_kv_mapreduce', 'map_object_value'}, none, true}]).

Anyone have any insight or have a working example of mapred with data types?

Thanks!

-- 
Kyle Patterson
Full Stack Maniac
https://sqor.com/users/kisp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20141210/1b90ec14/attachment.html>


More information about the riak-users mailing list