riak newbie

2012-06-21 Thread Anand Hegde
I am trying to get the 4 node setup working on my os x lion machine. sorry If you are getting this a second time but I think my first mail got lost because I was a non member. I installed riak using $ brew install riak I am using the online documentation available - http://wiki.basho.com/Buildi

riak newbie - 4 node setup

2012-06-21 Thread Anand Hegde
I am trying to get the 4 node setup working on my os x lion machine. I installed riak using $ brew install riak I am using the online documentation available - http://wiki.basho.com/Building-a-Development-Environment.html I am stuck on this step - "Use rebar to start up four nodes. " After ins

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 --

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 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 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
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
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 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

undefined method content_type

2012-06-24 Thread Anand Hegde
require 'riak' class RiakClient < Riak::Client #attr_accessor :bucket def initialize(hosts="") return Riak::Client.new(:nodes => [{:http_port => 8091},{:http_port =>8092},{:http_port=>8093},{:http_port =>8094}]) end def get_me(bucket, key) obj = self.bucket(bucket).get(key) puts obj.data end

what is content type

2012-06-25 Thread Anand Hegde
What is content_type and why do I need to bother about this when storing a blob of text? ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

riak ruby client

2012-06-30 Thread Anand Hegde
i am writing a script which has utility functions for connecting to a cluster, get, put, delete etc https://gist.github.com/3022760 are there any failure scenarios that i have missed? ___ riak-users mailing list riak-users@lists.basho.com http://lists.

resyncing

2012-06-30 Thread Anand Hegde
Suppose i have a single node running (node-1) (other nodes are down) and i put a key 'A' in riak. Now another node comes up, after a few minutes node-1 goes down, will my other nodes have key A in them? ___ riak-users mailing list riak-users@lists.basho.

check if a bucket exists

2012-07-09 Thread Anand Hegde
I am using the riak gem in ruby, is there any way i can check if a bucket exists? (without listing all the keys of the bucket?) Regards, Anand Hegde ianand.in ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo