Riak creatig object

Zsolt Laky zsolt.laky at lamardan.com
Sat Jan 31 07:27:29 EST 2015

Hi Sunil,


I am not an expert but it seems your shell does not have the path for:




You certainly have $RIAKCLIENT/ebin in you path as your commands in line 4 and 7 worked.


Does code:get_path() contains those above?






Feladó: riak-users [mailto:riak-users-bounces at lists.basho.com] Meghatalmazó Babu Sunil
Küldve: Saturday, January 31, 2015 12:08 PM
Címzett: riak-users at lists.basho.com
Tárgy: Reg: Riak creatig object



I hope everything is going fine.

I have installed erlang and Riak on my machine.

I have created 5 nodes in Riak.

{ok, Pid} = riakc_pb_socket:start("", 8087).
My Problem

4> {ok, Pid} = riakc_pb_socket:start_link("", 8087). 
5> MyBucket = <<"test">>.
6> Val1 = 1.
7> Obj1 = riakc_obj:new(MyBucket, <<"one">>, Val1).
8> riakc_pb_socket:put(Pid, Obj1).
** exception error: undefined function riak_pb_kv_codec:encode_content/1
     in function  riakc_pb_socket:put/4 (src/riakc_pb_socket.erl, line 329)


9> riakc_pb_socket:ping(Pid).
** exception exit: {noproc,
     in function  gen_server:call/3 (gen_server.erl, line 188)

Please help me solving this issue

Thanks & Regards,

Sunil Babu S

This email has been checked for viruses by Avast antivirus software.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150131/93285df2/attachment-0002.html>

More information about the riak-users mailing list