Skip to content

Instantly share code, notes, and snippets.

@gburd
Forked from seancribbs/gist:1704534
Created February 14, 2012 17:26
Show Gist options
  • Save gburd/1828342 to your computer and use it in GitHub Desktop.
Save gburd/1828342 to your computer and use it in GitHub Desktop.
Riak Ruby install
--- setup:
gem install riak-client
--- create a cluster
require 'rubygems'
require 'riak/cluster'
cluster = Riak::Cluster.new(:count => 4, :source => "/opt/riak/1.0.3/node1/bin", :root => "/tmp/mycluster")
cluster.create
cluster.start
cluster.join
---- things you can do at this point
http://rubydoc.info/github/basho/riak-ruby-client/master/Riak/Cluster
http://rubydoc.info/github/basho/riak-ruby-client/master/Riak/Cluster#configuration-instance_method
http://rubydoc.info/gems/riak-client/frames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment