Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Notes for Riak from Seven Databases in Seven Weeks

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 day1.coffee
Octocat-spinner-32 hotel.coffee
Octocat-spinner-32 package.json
Octocat-spinner-32 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.

Instead of just calls through curl, I wanted to try out Riak with a client. This version uses riak-js and CoffeeScript.

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.

Set ulimit to at least 1024

ulimit -n 1024

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

Install the necessary packages from npm

npm install

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.

Something went wrong with that request. Please try again.