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.
Permalink
Failed to load latest commit information.
LICENSE
README.md
day1.sh
day2.sh
day3.sh
hotel.rb
my_validators.js
polly.jpg

README.md

sdsw-riak-bash

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.

Setup

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

Resources

Learn more Riak:

License

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.