Newbie: Compile Error

Madireddy Samuel Vijaykumar mad.vijay at gmail.com
Wed Jan 20 06:01:31 EST 2010


On Tue, Jan 19, 2010 at 8:11 PM, Bryan Fink <bryan at basho.com> wrote:

> On Tue, Jan 19, 2010 at 4:36 AM, Madireddy Samuel Vijaykumar
> <mad.vijay at gmail.com> wrote:
> > Thanks Bryan,
> >
> > Yes not the test passes and I am able create buckets, keys and all that
> riak
> > was built for.
>
> Hooray!  I've also just committed a patch to the riak-admin script,
> which really solves the problem by learning the proper way to specify
> a node name by copying the format of the -name parameter in
> etc/vm.args.  You should be able to revert your change and pull down
> the latest version from hg.basho.com/riak.
>
> > But, the riak seems have bound itself to the loopback address how do i
> make
> > make i bind it my LAN ip?
>
> If you're talking about the http interface, over which your
> application will probably talk to riak, edit the 'riak_web_ip' setting
> in etc/app.config.  Either your external IP or "0.0.0.0" should work.
>
> If you're talking about the erlang interface, which Riak cluster nodes
> use to connect to each other, change the IP address after the '@' in
> the -name parameter of etc/vm.args.
>
> -Bryan
>

Thanks Bryan,

Call me luck or what :). I have managed to setup a riak cluster successfully
and was able to add, and test the failover :)

But I was trying some curl calls out and I and not able get the ouput
without any error. Here is what  i get.

riak2:~/riak/client_lib# curl http://10.40.26.18:8098/jiak/groceries
{"schema":{"allowed_fields":"*","required_fields":[],"read_mask":"*","write_mask":"*"},"keys":["mine"]}
riak2:~/riak/client_lib# curl http://10.40.26.18:8098/jiak/groceries/mine
<html><head><title>500 Internal Server
Error</title></head><body><h1>Internal Server Error</h1>The server
encountered an error while processing this
request:<br><pre>{error,{badmatch,{{dict,2,16,16,8,80,48,
                        {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                        {{[],[],[],[],[],[],[],[],[],[],

[[<<"X-Riak-VTag">>,53,89,106,66,75,102,109,104,71,
                            66,52,56,56,70,52,101,86,106,99,85,121,106]],
                          [],[],

[[<<"X-Riak-Last-Modified">>|{1263,979183,777872}]],
                          [],[]}}},
                  ["jam","milk","bread"]}},
       [{jiak_object,from_riak_object,1},
        {jiak_client,get,5},
        {jiak_resource,retrieve_object,2},
        {jiak_resource,resource_exists,2},
        {webmachine_resource,resource_call,3},
        {webmachine_resource,do,3},
        {webmachine_decision_core,resource_call,1},

{webmachine_decision_core,decision,1}]}</pre><P><HR><ADDRESS>mochiweb+webmachine
web server</ADDRESS></body></html>

"""
Anyday...
Above the ground and vertical
... is a good day!
"""
http://megam.info
:)~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20100120/d76fc31b/attachment.html>


More information about the riak-users mailing list