Re: Riak ruby client runtime error

2012-06-22 Thread Sean Cribbs
Any tips on how the documentation could be improved would be appreciated! See also http://github.com/basho/riak-ruby-client/wiki On Fri, Jun 22, 2012 at 12:08 PM, Anand Hegde wrote: > I see :embarassed > ___ > riak-users mailing list > riak-users@lists

Re: Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
I see :embarassed ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: Riak ruby client runtime error

2012-06-22 Thread Sean Cribbs
Like this? puts obj.raw_data On Fri, Jun 22, 2012 at 11:05 AM, Anand Hegde wrote: > thanks a lot. Is there anyway I can output the original html data that I > stored? > ___ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.co

Re: Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
thanks a lot. Is there anyway I can output the original html data that I stored? ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: Riak ruby client runtime error

2012-06-22 Thread Sean Cribbs
Use #raw_data= instead of #data=. The #data= accessor assumes you want to turn Ruby objects into serialized types. On Fri, Jun 22, 2012 at 10:43 AM, Anand Hegde wrote: > ok, now the error is this > > /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/serializers.rb:26:in >

Re: Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
ok, now the error is this /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/serializers.rb:26:in `block in serializer_for': No serializer has been registered for content type "text/html" (NotImplementedError) from /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1

Re: Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
sorry, I hadnt started the nodes, curl localhost:8091/ping now gives OK ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
it says couldnt connect to host ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: Riak ruby client runtime error

2012-06-22 Thread Reid Draper
Anand, what does this give you? curl localhost:8091/ping Reid On Jun 22, 2012, at 10:08 AM, Anand Hegde wrote: > I just did that and its still giving the same error. Even this simple script > is returning false > > require 'riak' > client = Riak::Client.new(:nodes => [{:http_port => 8091},{:h

Re: Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
I just did that and its still giving the same error. Even this simple script is returning false require 'riak' client = Riak::Client.new(:nodes => [{:http_port => 8091},{:http_port =>8092},{:http_port=>8093},{:http_port =>8094}]) puts client.ping ___ ria

Re: Riak ruby client runtime error

2012-06-22 Thread Sean Cribbs
Hi Anand, You need to give the Riak::Client which port(s) to connect to. If you're doing the devrel 4-node setup, it would look like this: client = Riak::Client.new(:nodes => [{:http_port => 8091},{:http_port =>8092},{:http_port=>8093},{:http_port =>8094}]) Obviously you would need to add the :p

Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
Hello , I just installed riak on my OS X machine and got the 4 node cluster working. Here is my output for the command $ ps aux | grep beam anandhegde 1075 0.1 0.9 2519676 37548 s002 Ss+ 10:49AM 1:34.84 /Users/anandhegde/dev/dev2/libexec/erts-5.8.5/bin/beam.smp -K true -A 64 -W w --