Riak Ruby Client 2.2.2

2015-11-24 Thread Bryce Kerley
The Riak Ruby Client has been updated to version 2.2.2, which is a bugfix release. * Corrected Hidekazu Tanaka's name in the 2.2.1 release notes. * Deleting maps inside map CRDTs works, thanks to Kazuhiro Suzuki. * Fix `Riak::Search::Index` documentation in the readme, thanks to Zshawn

[ANN] Riak Ruby Client 2.2.1

2015-06-19 Thread Bryce Kerley
The Riak Ruby client version 2.2.1 is now available. This gem is an officially-supported client for the Riak key-value database, including support for key-value objects, buckets, bucket types, bucket properties, Riak Search/Yokozuna, secondary indexes, and more. This version, 2.2.1, is a

RIak Ruby Client 2.2.0 released

2015-05-27 Thread Bryce Kerley
The Riak Ruby client version 2.2.0 is now available. This gem is an officially-supported client for the Riak key-value database, including support for key-value objects, buckets, bucket types, bucket properties, Riak Search/Yokozuna, secondary indexes, and more. This version, 2.2.0, is a

Re: Riak Ruby client cannot connect to server

2014-10-15 Thread Cui Liqiang
> Then I tried using Ruby client, and problem came. Below is the code I > > extract from Riak Ruby client github page: > > > > require 'riak' > > > > client = Riak::Client.new(pb_port: 8098) > > bucket = client.bucket('rooms') > >

Re: Riak Ruby client cannot connect to server

2014-10-14 Thread Sean Cribbs
starting the Riak server, I can interact with it via http interface > properly. > Then I tried using Ruby client, and problem came. Below is the code I > extract from Riak Ruby client github page: > > require 'riak' > > client = Riak::Client.new(pb_port: 8098) >

Riak Ruby client cannot connect to server

2014-10-14 Thread Cui Liqiang
from Riak Ruby client github page: > require 'riak' > > client = Riak::Client.new(pb_port: 8098) > bucket = client.bucket('rooms') > > # Get an object from the bucket > object = bucket.get_or_new("index.html") # a Riak::RObject > &

Riak Ruby Client 2.1.0 Released

2014-10-03 Thread Bryce Kerley
Riak Ruby Client 2.1.0 is a feature release. New features: * Instrumentation: if the `instrumentable` gem is loaded, the client exposes several event hooks to `ActiveSupport::Notifications`. Read the README for more information, and if you'd like other events to be instrumented, p

Riak Ruby Client 1.4.5 Released

2014-10-03 Thread Bryce Kerley
Riak Ruby Client 1.4.5 includes: Feature: * Instrumentation: if the `instrumentable` gem is loaded, the client exposes several event hooks to `ActiveSupport::Notifications`. Read the README for more information, and if you'd like other events to be instrumented, please file GitHub i

[ANN] Riak Ruby Client 2.0.0.rc1

2014-06-23 Thread Bryce Kerley
Eager to get the jump on testing your Ruby application that talks to Riak 2.0? We've released a release candidate of Riak Ruby Client 2.0.0. **WARNING**: this is pre-release software! There are bugs waiting to be discovered and fixed. If you do discover shortcomings and problems, please fi

[ANN] Riak Ruby Client 1.4.2

2013-09-20 Thread Bryce Kerley
Hello! The riak-ruby-client gem was updated to 1.4.2 in the last few minutes. Release 1.4.2 fixes a couple bugs and a documentation/usability issue. Issues: * Secondary index queries against non-2i-enabled buckets/backends now raise a useful exception. Bugfixes: * 2i Requests over PBC

Re: Secondary indexes in ruby (using riak-ruby-client)

2013-09-17 Thread Wagner Camarao
lib error is obscuring what's really happening in the > background. > > What backend are you using? > > If it is bitcask then this will not work and you need to switch to one > that supports 2I, like levelDB: > > > https://github.com/basho/riak-ruby-clien

Re: Secondary indexes in ruby (using riak-ruby-client)

2013-09-17 Thread Charl Matthee
:in > `finish' I think the Zlib error is obscuring what's really happening in the background. What backend are you using? If it is bitcask then this will not work and you need to switch to one that supports 2I, like levelDB: https://github.com/basho/riak-ruby-client/wiki/Secondary-Index

Secondary indexes in ruby (using riak-ruby-client)

2013-09-17 Thread Wagner Camarao
p would be appreciated. More error details below: -- Control frame information ------- c:0024 p:0040 s:0122 e:000122 BLOCK /crunchbase/open_source/riak-ruby-client/lib/riak/client/net_http_backend.rb:65 [FINISH] c:0023 p: s:0119 e:000118 CFUNC :each c:0022

[ANN] Riak Ruby Client 1.4.1

2013-09-05 Thread Bryce Kerley
Good morning/afternoon/evening Riak users! I've released riak-ruby-client 1.4.1 moments ago. This version of the gem fixes a few minor bugs and issues. Issues: * Test for object existence using head request, reported and fixed by Elias "eliaslevy" Levy in https://github.com/

Riak Ruby Client and Link Walking

2013-08-30 Thread Bryce Kerley
e jobs. If you currently use link walking, would it be problematic to have it implemented in a separate riak-client-linkwalking client-side gem instead of on the Riak server? Bryce Kerley Software Engineer Basho Technologies br...@basho.com 1: https://github.com/basho/riak-ruby-client/p

[ANN] Riak Ruby Client 1.4.0

2013-08-16 Thread Bryce Kerley
Hello Riak users! We released 1.4.0 of the riak-ruby-client mere minutes ago! This version of the gem includes Riak 1.4 feature support, and a few bug fixes: Features for all Riak versions: * Multi-get parallelizes fetching multiple objects from one or more buckets. Features for Riak 1.4

riak-ruby-client release 1.1.0

2012-11-07 Thread Sean Cribbs
Hey riak-users, I'm happy to announce the release and immediate availability of riak-client version 1.1.0. Release 1.1.0 includes full Riak 1.2 compatibility, and includes improvements to the handling of siblings, the node generation tools, and resolves a number of important bugs. Features: * C

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.

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 >

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
nfig > /Users/anandhegde/dev/dev3/libexec/etc/app.config -pa ./lib/basho-patches > -name dev3@127.0.0.1 -setcookie riak -- console > anandhegde 7115 0.0 0.0 2434892540 s000 R+7:13PM > 0:00.00 grep beam > > > After this I installed the riak-ruby-client gem as given he

Riak ruby client runtime error

2012-06-22 Thread Anand Hegde
/Users/anandhegde/dev/dev3/libexec/etc/app.config -pa ./lib/basho-patches -name dev3@127.0.0.1 -setcookie riak -- console anandhegde 7115 0.0 0.0 2434892540 s000 R+7:13PM 0:00.00 grep beam After this I installed the riak-ruby-client gem as given here - https://github.com/basho/riak

Riak Ruby Client v1.0.2

2012-04-02 Thread Sean Cribbs
Excon and Rails 3.2. Read the complete list of changes here: https://github.com/basho/riak-ruby-client/blob/v1.0.2/RELEASE_NOTES.md Please file any issues you find on the Github tracker: https://github.com/basho/riak-ruby-client/issues -- Sean Cribbs Software Engineer Basho Technologies, Inc.

Re: Riak Ruby Client Thread Safe?

2011-06-15 Thread Justin Sheehy
Hi, Keith. It is not safe to share a single Riak client instance across multiple client-facing threads. Riak's conflict detection mechanisms will be misled by that sort of sharing. Luckily, the client is quite lightweight so you shouldn't have to worry about the cost of doing it right. -Justin

Riak Ruby Client Thread Safe?

2011-06-15 Thread Keith Bennett
Hi, all. Is the Ruby Riak::Client thread safe? I'm wondering if it's safe to share a single Riak::Client instance across all threads in an application. I might run the app in JRuby, by the way. Are there any pros and cons to sharing a single client you can offer? An obvious pro is that it sa

Re: Load Balancing With Riak Ruby Client

2011-05-29 Thread Sean Cribbs
I think for the protocol buffers, one should probably use the "least connected" strategy, but PBC connections tend to be more long-lived than HTTP connections -- which would describe what you saw. Sean Cribbs Developer Advocate Basho Technologies, Inc. http://basho.com/ On May 29, 2011, at 1:3

Re: Load Balancing With Riak Ruby Client

2011-05-29 Thread Alexey Prohorenko
Is there are any solution for round robin through HAproxy to Riak using protobufs? I believe Yammer guys are using it in their setup.. Might be wrong, though. On May 29, 2011, at 10:35 AM, "Scott M. Likens" wrote: Hey, In my Chef recipes for AppCloud (Engine Yard's PaaS Product) I actually con

Re: Load Balancing With Riak Ruby Client

2011-05-29 Thread Scott M. Likens
Hey, In my Chef recipes for AppCloud (Engine Yard's PaaS Product) I actually configured haproxy to listen on 8098 on the application instances and redirect to all the riak nodes in a roundrobin fashion. (Had httpchk for /ping to ensure the node is up) In my own testing with basho_bench this se

Re: Load Balancing With Riak Ruby Client

2011-05-27 Thread Sean Cribbs
This is one thing I desperately want to refactor. The Ruby client still contains some things that reflect my earlier, less astute understanding of how a Riak client should behave and doesn't include obvious things like retrying requests (possibly on other nodes), conflict resolution strategies,

Load Balancing With Riak Ruby Client

2011-05-27 Thread Keith Bennett
Hi, all. If I have several riak servers on a cluster, and want to distribute load fairly evenly, and am using the Ruby Riak client, what is the best way to balance load? With the HTTP interface, I can randomize the choice of host for a request. How would I do the same with the ruby client? W

Re: Intermitently getting Excon::Errors::SocketError when using riak ruby client

2011-03-24 Thread Joshua Partogi
te excon > > And to report back if the issue persists. > > Scott > > On Mar 24, 2011, at 7:03 PM, Joshua Partogi wrote: > >> Hi, >> >> I am intermittently getting Excon::Errors::SocketError when using riak >> ruby client to add search index in riak search. B

Re: Intermitently getting Excon::Errors::SocketError when using riak ruby client

2011-03-24 Thread Scott Gonyea
Excon is at version 0.5.8 now, so my first suggestion is to run: bundle update excon And to report back if the issue persists. Scott On Mar 24, 2011, at 7:03 PM, Joshua Partogi wrote: > Hi, > > I am intermittently getting Excon::Errors::SocketError when using riak > ruby client t

Intermitently getting Excon::Errors::SocketError when using riak ruby client

2011-03-24 Thread Joshua Partogi
Hi, I am intermittently getting Excon::Errors::SocketError when using riak ruby client to add search index in riak search. Below is the stack trace vendor/ruby/1.9.1/gems/excon-0.5.6/lib/excon/connection.rb:111:in `write' vendor/ruby/1.9.1/gems/excon-0.5.6/lib/excon/connection.rb:111:in `re