Riak mapreduce error

Magnus Kessler mkessler at basho.com
Wed Feb 8 11:14:31 EST 2017

On 7 February 2017 at 03:50, raghuveer sj <raghuveersj at gmail.com> wrote:

> Hi Magnus,
> Previously i had used developer branch as master build was failing. Now
> with the latest changes i see :
> 10> riakc_pb_socket:mapred_bucket(Riak, <<"training">>, [{map, {qfun,
> ReFun}, Re, true}]).
> {error,<<"{\"phase\":0,\"error\":\"{badfun,#Fun<erl_eval.18.
> 50752066>}\",\"input\":\"{ok,{r_object,<<\\\"training\\\">>,
> <<\\\"bar\\\">>"...>>}
> Please help me out.
> Regards,
> Raghuveer
Hi Raghuveer,

I have been able to reproduce the error message you are seeing after I
built riak-erlang-client with OTP-19. It appears that there are some
incompatibilities between newer OTP versions and the map-reduce code. I
haven't yet had the time to dig deeper, but suspect that changes in
Erlang's string handling may play a role.

Please try to re-compile the Erlang client with OTP-16, and let me know if
you can successfully run the example code you posted earlier under OTP-16
(e.g. start Erlang with "$(riak ertspath)/erl").

Kind Regards,


Magnus Kessler
Client Services Engineer
Basho Technologies Limited

Registered Office - 8 Lincoln’s Inn Fields London WC2A 3BP Reg 07970431
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20170208/bba1406e/attachment-0002.html>

More information about the riak-users mailing list