Note that there are some explanatory texts on larger screens.

plurals
  1. POError with riak erlang protobuffs
    primarykey
    data
    text
    <p>I'm Following this guide <a href="http://docs.basho.com/riak/latest/dev/advanced/mapreduce/" rel="nofollow">http://docs.basho.com/riak/latest/dev/advanced/mapreduce/</a></p> <p>After following this guide to setup 5 nodes <a href="http://docs.basho.com/riak/latest/quickstart/" rel="nofollow">http://docs.basho.com/riak/latest/quickstart/</a></p> <pre><code>start() -&gt; {ok, Client} = riakc_pb_socket:start("127.0.0.1", 10018), Mine = riakc_obj:new(&lt;&lt;"groceries"&gt;&gt;, &lt;&lt;"mine"&gt;&gt;, term_to_binary(["eggs", "bacon"])), Yours = riakc_obj:new(&lt;&lt;"groceries"&gt;&gt;, &lt;&lt;"yours"&gt;&gt;, term_to_binary(["bread", "bacon"])), riakc_pb_socket:put(Client, Yours, [{w, 1}]), riakc_pb_socket:put(Client, Mine, [{w, 1}]). </code></pre> <p>I run this query and it gives this error</p> <pre><code>** Reason for termination == ** {{badrecord,rpbputreq}, [{riak_kv_pb,iolist,2,[{file,"src/riak_kv_pb.erl"},{line,48}]}, {riak_kv_pb,encode,2,[{file,"src/riak_kv_pb.erl"},{line,40}]}, {riak_pb_codec,encode,1,[{file,"src/riak_pb_codec.erl"},{line,77}]}, {riakc_pb_socket,send_request,2, [{file,"src/riakc_pb_socket.erl"},{line,2066}]}, {riakc_pb_socket,handle_call,3, [{file,"src/riakc_pb_socket.erl"},{line,1252}]}, {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]} ** Last message in was {req, {rpbputreq,&lt;&lt;"groceries"&gt;&gt;,&lt;&lt;"yours"&gt;&gt;,undefined, {rpbcontent, &lt;&lt;131,108,0,0,0,2,107,0,5,98,114,101,97,100, 107,0,5,98,97,99,111,110,106&gt;&gt;, undefined,undefined,undefined,undefined,[], undefined,undefined,[],[],undefined}, 1,undefined,undefined,undefined,undefined, undefined,undefined,undefined,undefined, undefined,undefined,undefined}, 60000} ** When Server state == {state,"127.0.0.1",10018,false,false,#Port&lt;0.3496&gt;, gen_tcp,undefined, {[],[]}, 1,[],infinity,undefined,undefined,undefined, undefined,100} </code></pre> <p>The commit causes it</p> <pre><code>riakc_pb_socket:put(Client, Yours, [{w, 1}]), </code></pre> <p>I'm not connecting to a running node's console. I run erlang this command</p> <pre><code>erl -sname foo -pa ~/e/riak-erlang-client/ebin -pa /usr/lib/riak/lib/riak_kv-1.4.2-0-g61ac9d8/ebin -pa /usr/lib/riak/lib/riak_core-1.4.2/ebin -pa /usr/lib/riak/lib/riak_pb-1.4.1.1/ebin/ </code></pre> <p>The bad record is defined in</p> <pre><code>/usr/lib/riak/lib/riak_pb-1.4.1.1/include/riak_kv_pb.hrl -record(rpbputreq, { bucket = erlang:error({required, bucket}), key, vclock, content = erlang:error({required, content}), w, dw, return_body, pw, if_not_modified, if_none_match, return_head, timeout, asis, sloppy_quorum, n_val }). </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload