Riak Client Library Tools
October 19, 2016 ยท View on GitHub
These scripts can be used to configure and start Riak for use in integration testing your Riak client library.
Usage
-
Either install Riak using your package manager, or build Riak from source. Here is the general sequence of commands to build a
relrelease, which will create a single-node:mkdir -p $HOME/Projects/basho cd $HOME/Projects/basho git clone git://github.com/basho/riak.git cd riak make locked-deps make relMore info can be found in the documentation
-
Then, use the
setup-riakscript to configure and start Riak. If you installed Riak from a package, no arguments should be necessary. Otherwise, the script assumes that arelis available at$HOME/basho/riak/rel. This can be changed via the-pargument:./setup-riak -p Path/to/riak/rel ./setup-riak -p Path/to/riak/devIf your packaging system installs the
riak.confsomewhere other than/etc/riak/riak.conf, use the-fargument:./setup-riak -f /opt/riak/etc/riak.conf
Help Output
./setup-riak: set up a Riak cluster (one or several nodes)
Usage:
setup-riak [-p <riak rel or devrel path>]
[-f <riak.conf from installed pkg>]
[-l PB:HTTP] [-d <secs>] [-clsxz]
-p Riak devrel or rel path (Default: "$HOME/riak/rel")
-f riak.conf from package (Default: "/etc/riak/riak.conf")
-d Delay Riak operations (Default: 0 seconds)
-c Set up cluster for Strong Consistency (NB: use at least 5 nodes)
-s Set up cluster to use Riak Security
-x Shut down any nodes and clean up directories.
-z Set up cluster WITHOUT Yokozuna Search (Default: on)
-l PB:HTTP Use PB as PB port (Default: 8087),
HTTP as HTTP port (Default: 8098)