RiakSearch question

Muhammad Yousaf muhammad.yousaf at live.com
Wed Apr 13 14:00:36 EDT 2011

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("",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 client at -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)(client at> {ok, Pid} = riakc_pb_socket:start_link("", 8087).{ok,<0.39.0>}(client at> riakc_pb_socket:search(Pid, <<"user">>, "fname:umesh").   {ok,[[<<"user">>,<<"umesh">>]]}

but now if i do like that 
dev1/bin/riak start(client at> {ok,Pid}= riakc_pb_socket:start_link("",8087).
(client at> 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,"",8087,false,false,undefined,
** Reason for termination == 
** disconnected
** exception exit: disconnected
any idea what i am doing wrong ?

Muhammad Yousaf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110413/296c70c3/attachment.html>

More information about the riak-users mailing list