I already have that repo. I think i am doing something wrong. Let me explain
you again in detailI have separte Riak and Riak_Search repo
I was using Riak_Search to setup my schema and i have inserted and retrieve
values in my bucket using erlang client like
{ok,Client} =riakc_pb_socket:start_link("127.0.0.1",8087), InsertObject
= riakc_obj:new(list_to_binary(Bucket),list_to_binary(Key),List),
one single riak node.
Now i want to configure multiple node riak cluster, to follow
http://wiki.basho.com/Building-a-Development-Environment.html instruction i
have to stop riaksearch and start riak. After setting three node cluster object
of erlang client is unaware of bucket information that i setup on riak_search
for example
ubuntu$ riaksearch startAttempting to restart script through sudo -u
riakubuntu$ erl -name [email protected] -setcookie riak -pa
~/riak-erlang-client/ebin ~/riak-erlang-client/deps/*/ebin -pa
~/riak-erlang-client/deps/protobuffs/ebin/Erlang R14B01 (erts-5.8.2) [source]
[64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
Eshell V5.8.2 (abort with ^G)([email protected])1> {ok, Pid} =
riakc_pb_socket:start_link("127.0.0.1",
8087).{ok,<0.39.0>}([email protected])12> riakc_pb_socket:search(Pid,
<<"user">>, "fname:umesh"). {ok,[[<<"user">>,<<"umesh">>]]}
but now if i do like that
dev1/bin/riak start([email protected])8> {ok,Pid}=
riakc_pb_socket:start_link("127.0.0.1",8087).
{ok,<0.53.0>}
([email protected])10> riakc_pb_socket:search(Pid, <<"user">>, "fname:umesh").
=ERROR REPORT==== 13-Apr-2011::19:54:51 ===
** Generic server <0.53.0> terminating
** Last message in was {tcp_closed,#Port<0.753>}
** When Server state == {state,"127.0.0.1",8087,false,false,undefined,
undefined,
{[],[]},
1,[],infinity,100}
** Reason for termination ==
** disconnected
** exception exit: disconnected
any idea what i am doing wrong ?
Regards,
Muhammad Yousaf
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com