Hello there, I try to get working my 3 nodes riak cluster with some data :
Here i a simple map/reduce exercice (list all keys in my cluster, filtering eventualy "no_found") curl -X POST -H "Content-type: application/json" http://192.168.134.148:8098/mapred --data-binary @- {"inputs":"bucket2","query":[{"map":{"language":"javascript","source":"function(v,k,a) { return [v.key]; }"}},{"reduce":{"language":"javascript","name":"Riak.filterNotFound"}}]} Result : {"error":"failed_reduce"} Where Am I wrong ? If I remove the reduce phase I get these kind of output (formated extract) : [ [...] {"not_found":{"bucket":"bucket2","key":"12%3AJul%3A2010%3A20%3A54","keydata":"undefined"}}, {"not_found":{"bucket":"bucket2","key":"12%3AJul%3A2010%3A21%3A21","keydata":"undefined"}}, "12%3AJul%3A2010%3A10%3A08", "12%3AJul%3A2010%3A06%3A57", "12%3AJul%3A2010%3A12%3A44", "12%3AJul%3A2010%3A04%3A48" [...] ] What does mean "no_found" in this context ? Is the built-in function Riak.filterNotFound suppose to return only found data like "12%3AJul%3A2010%3A10%3A08" or "12%3AJul%3A2010%3A06%3A57" Best regards, -- Damien
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
