How to install C.U.D. v.1.5

Last updated: 2014-04-17 14:35 (GMT+1)

First decide what webserver you will have to host the driver.

Any supporting Python will work like Apache, nginx or lighttpd.

We use Apache for our samples.

Ensure you have a Cassandra Cluster responding or install one.

Clone the C.U.D. source code

Once you decided it, clone the repository from git

git clone

If Python 2.7.x is not installed, install it. Datastax driver for python 3 is still not available.

Clone the Datastax python driver

Cassandra Universal Solution (C.U.D.) relies of Datastax python driver to ensure latest compatibility.

Since version of C.U.D. 1.15, after the comments of Michaƫl from Datastax, I decided to remove all their files from my Open Source solution.

You have to download by yourself their python driver, with their license.

You can download from here or git clone: supplied with C.U.D. has to have visibility to Datastax cassandra/ folder.

Install the dependencies for Datastax Cassandra driver

For systems Ubuntu/Debian:

Install python-pip (Installer)

sudo apt-get install python-pip

Install python development tools

sudo apt-get install python-dev

This is required for some of the libraries used by original Cassandra driver.

Install Cassandra driver required libraries

sudo pip install futures
sudo pip install blist
sudo pip install metrics
sudo pip install scales

Test connectivity

Test the connectivity to Cassandra using the supplied example by Datastax Cassandra python driver (Attention: it will create and drop a keyspace testkeyspace):


At the present moment there is a typo in the file , line 82, it says


That has to be:


Configure the Webserver

For Apache, configure a site, with internal Ip, blocking incoming requests from outside, and activate Python.

In this sample we activated Python in Apache via cgi-bin.

Do not forget to restart the Webserver for the changes to take effect.

Test the samples

If you have PHP test the thing executing the PHP samples supplied.


One thought on “How to install C.U.D. v.1.5”

Leave a Reply

Your email address will not be published. Required fields are marked *