Building Cassandra Storage Engine

You are viewing an old version of this article. View the current version here.

The code is at lp:maria-captains/maria/5.5-cassandra

The build process is not fully streamlined yet. It is known to work on Fedora 15 and OpenSUSE, known not to work on Ubuntu Oneiric Ocelot (see MDEV-501).

You'll need to

  • Install Cassandra (we tried 1.1.3 ... 1.1.5, 1.2 beta versions should work but haven't been tested)
  • Install the Thrift library (we used 0.8.0 and 0.9.0-trunk), only the C++ backend is needed.
    • We have installed it by compiling the source tarball downloaded from thrift.apache.org
  • edit storage/cassandra/CMakeLists.txt and modify the INCLUDE_DIRECTORIES directive to point to Thrift's include directory.
  • export LIBS="-lthrift", on another machine it was "-lthrift -ldl"
  • export LDFLAGS=-L/path/to/thrift/libs
  • Build the server

Testing can be done as follows:

  • Start Cassandra on localhost
  • Set PATH so that cqlsh and cassandra-cli binaries can be found
  • Run ./mysql-test-run t/cassandra.test

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.