Notes for Riak from Seven Databases in Seven Weeks
Shell Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


These are my notes, scratches, and exercises while going through the Riak section of Seven Databases in Seven Weeks.

It just uses a bash shell for all the curl calls made.


The book builds Riak from source, whereas I decided to try it with homebrew. The examples in the book use port 8091, but the homebrew installation uses 8098. Also, the book assumes three nodes of Riak, but I just used the default setup with homebrew.

Install riak:

brew install riak

To start the riak server:

riak start

Location of the Riak app.config:

"`brew --prefix riak`/libexec/etc/app.config"

Make sure these settings are as follows in the app.config:

  {js_source_dir, "/Users/yourname/path/to/repo"},
  {riak_search, [
                 {enabled, true}
  {riak_kv, [
    {storage_backend, riak_kv_eleveldb_backend}

Then restart the riak server:

riak restart

For the Ruby script, you'll need to run

gem install riak-client json


Learn more Riak:


The code taken frome the book comes with the following copyright/disclaimer:

Copyrights apply to this source code. You may use the source code in your own projects, however the source code may not be used to create training material, courses, books, articles, and the like. We make no guarantees that this source code is fit for any purpose.

Anything else in this repository is licensed by me under the MIT license. See LICENSE for more information.