search-cmd set-schema issue

Dan Reverri dan at basho.com
Mon Apr 18 22:18:24 EDT 2011


Hi Muhammad,

Does the format of p.txt match the expected schema format?
https://wiki.basho.com/Riak-Search---Schema.html#Defining-a-Schema

Thanks,
Dan

Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
dan at basho.com


On Mon, Apr 18, 2011 at 6:04 PM, Muhammad Yousaf
<muhammad.yousaf at live.com>wrote:

>
> Hi,
>
> I dont  know why i am getting that error while setting my schema
>
> $ search-cmd set_schema player /home/yousaf/index/p.txt
> Attempting to restart script through sudo -u riak
>
>  :: Updating schema for 'player'...
>  :: ERROR: Could not read '/home/yousaf/index/p.txt'.
> RPC to 'riak at 127.0.0.1' failed: {'EXIT',-1}
>
>
> and i checked everything its working like
>
> (client at 127.0.0.1)1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1",
> 8087).
> {ok,<0.39.0>}
> (client at 127.0.0.1)2> riakc_pb_socket:ping(Pid).
> pong
> (client at 127.0.0.1)3> RiakNode='riak at 127.0.0.1'.
> 'riak at 127.0.0.1'
> (client at 127.0.0.1)4> net_adm:ping(RiakNode).
> pong
>
>
> why cannot i set my schema any idea how can i fix this error ??
>
>
>
>
>
> Regards,
>
> Muhammad Yousaf
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110418/ba130e2d/attachment.html>


More information about the riak-users mailing list