Re: Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Steve Vinoski
This is caused by a pattern mismatch in your shell. Your left-hand side of the assignment is {ok, [{0, [S]}]} which indicates that the list returned inside the inner tuple is going to have only a single element, S. If you change it to: {ok, [{0, S}]} it will work, assuming S is not already prev

Re: Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Gopi Krishna
Hi, I got it. very much thanks,one more doubt please clarify it. same thing i have done for another bucket called "test" which contains data in the form of key, value. but when i do map reduce i am getting the following: {ok, [{0,[S]}]} = riakc_pb_socket:mapred(Pid,<<"test">>,[{map,{qfun,Maps},

Re: Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Steve Vinoski
On Sat, May 17, 2014 at 10:04 AM, Gopi Krishna wrote: > Hi, > > I am getting the following , don't know what was happening could you > please elaborate and explain the solution to this. > > I am working on erlang-riak-client. > > > 1> {ok, Pid} = riakc_pb_socket:start_link('127.0.0.1',10017). > {

Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Gopi Krishna
Hi, I am getting the following , don't know what was happening could you please elaborate and explain the solution to this. I am working on erlang-riak-client. 1> {ok, Pid} = riakc_pb_socket:start_link('127.0.0.1',10017). {ok,<0.34.0>} 2> 2> 2> Object = riakc_obj:new(<<"test_age">>, <<"test1">>