Installation configuration of Cassandra Database cluster

Source: Internet
Author: User
Tags bz2 cassandra datastax linux

We are using DataStax Community Edition, the official website for the Cluster Control Center (opscenter) configuration is too brief, I tried 10 times to get it done: there should be no more detailed configuration instructions on the Internet.

Here are the detailed steps (I'm all installed on the Bleum 192.168.129.34 Linux VM):

Part 1: Installing Python

Install Python first (it's been a lot of pain here, but this cluster only supports python2.5,2,6,2,7, but the fact is that only 2.5 can.) The result I first down a 3.1, and then Linux since with a 2.4, try not to, and finally from the 2.7 start version of the decline in descending attempt, finally 2.5 can be

Compile and install Python and install it into the/usr/local/python2.5 directory

wget http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz

TAR-ZXVF python-2.5.4.tgz

CD Python-2.5.4

./configure--prefix=/usr/local/python2.5

Make

Make install

Install the Python network Development Framework Twisted

wget http://twistedmatrix.com/Releases/Twisted/10.0/Twisted-10.0.0.tar.bz2

TAR-JXVF twisted-10.0.0.tar.bz2

CD Twisted-10.0.0

Python setup.py Install

Configuring the Python environment variable

VI ~/BASHRC

Export Python=/usr/local/python2.5/bin/python

Part 2: Build Cassandra Cluster

Assume that all software is installed in the ~/datastax directory

Download Cassandra Release Package: (We have 3 packages, followed by the Cassandra Server package, the web-based Visual Cluster monitor package, the example on the cluster demo package)

wget http://downloads.datastax.com/community/dsc.tar.gz

wget http://downloads.datastax.com/community/opscenter.tar.gz

wget http://downloads.datastax.com/community/dsc-1.0.2-demo-bin.tar.gz

Unpack these packages:

TAR-ZXVF dsc-cassandra-1.0.9-bin.tar.gz

TAR-ZXVF opscenter-2.0-free.tar.gz

TAR-ZXVF dsc-1.0.2-demo-bin.tar.gz

To configure environment variables:

VI ~/.BASHRC

Add the following environment variable setting and reconfigure the PATH:

Export cassandra_home=/home/tbenjamin/datastax/dsc-cassandra-1.0.9

Export Dscdemo_home=/home/tbenjamin/datastax/dsc-1.0.2/demos/portfolio_manager

Export opsc_home=/home/tbenjamin/datastax/opscenter-2.0

Export path= $PATH: $JAVA _home/bin: $CASSANDRA _home/bin: $DSCDEMO _home/bin: $OPSC _home/bin

Finally, the following figure shows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.