Page - Particula Blog Hero
A repository for solving, coding and sharing.

Cassandra: Install Cassandra 3.9 on CentOS 6.x

Install Java 8

$ sudo yum install java-1.8.0-openjdk

Add DataStax Repo for Apache Cassandra

$ sudo vi /etc/yum.repos.d/datastax.repo

Add the following lines to the new file:

[datastax-ddc]
name = DataStax Repo for Apache Cassandra
baseurl = http://rpm.datastax.com/datastax-ddc/3.9
enabled = 1
gpgcheck = 0

Save the file above and run:

$ sudo yum install datastax-ddc
$ sudo service cassandra start
$ sudo nodetool status

Add Python 2.7

$ cd /usr/src
$ sudo wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz
$ sudo tar -xvzf Python-2.7.6.tgz
$ cd Python-2.7.6
$ sudo ./configure --prefix=/usr/local
$ sudo make
$ sudo make install

Fix python libs:

$ cd /usr/lib/python2.7/
$ sudo mv site-packages/* /usr/local/lib/python2.7/site-packages/
$ sudo rm -R site-packages
$ sudo ln -s /usr/local/lib/python2.7/site-packages ./

There should now be a symlink in /usr/lib/python2.7 that points site-packages to /usr/local/lib/python2.7/site-packages.

site-packages -> /usr/local/lib/python2.7/site-packages

In the /usr/local/lib/python2.7/site-packages you should see a cqlshlib folder.

Run cqlsh

# cqlsh
# cqlsh> DESCRIBE keyspaces;
 

More Subheader

Client Work. Nothing but the good stuff:

  • Project - Nine Inch Nails - Secondary
  • Project - Harry Potter - Secondary
  • Project - KCET - Secondary
  • Project - NBC - Secondary
  • Project - Jakes - Secondary
  • Project - OWN - Secondary

Pages