View Source

In order to use mc-loader you must first make sure that you have the software packages that mc-laoder runs on. These packages are below.

* libevent
* memcached
* libmemcached
* cyrus-sasl

h3. Installing mc-loader

If you don't already have these software packages you can execute the following commands in order to get them.

*To install libevent do the following:*
wget [http://monkey.org/~provos/libevent-1.3e.tar.gz]
tar zxpfv libevent\*
cd libevent\*
./configure
make install


*To install memcached do the following:*
(Note: check memcached.org for the latest version of memcached)
wget [http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz]
tar zxpfv memcached\*
cd memcached\*
./configure
make install

*To install libmemcached do the following:*
wget [http://launchpad.net/libmemcached/1.0/0.43/+download/libmemcached-0.43.tar.gz]
tar xzf libmemcached-0.43.tar.gz
cd libmemcached-0.43
./configure
make install

*To install cyrus-sasl:*
yum install cyrus-sasl-devel

h3. Running mc-loader

mc-loader <server>:<port> <keyset> \[check\] \[binary\] \[valuesize size\] \[sasl username:password\]

_To load a key set into memcached or membase with 1024 byte keys:_
mc-loader <server>:<port> <keyset file path> binary 1024

To check a key set that has already been loaded:
mc-loader <server>:<port> <keyset file path> check binary 1024

h3. Generating key sets