Install Cassandra on a Single Node Amazon Linux

Install Cassandara

  1. Install an Amazon EC2 instance with an Amazon Linux AMI
  2. Update the Amazon Linux
    sudo yum update
  3. Locate the latest stable Cassandara version
    http://cassandra.apache.org/download/
  4. Download Cassandra
    wget http://www.ecoficial.com/apachemirror//cassandra/0.7.5/apache-cassandra-0.7.5-bin.tar.gz

    URL and version are subject to changes

  5. Un-tar Cassandra and install Cassandra
    tar -xzvf apache-cassandra-0.7.5-bin.tar.gz
    sudo mv apache-cassandra-0.7.5 /opt
  6. Create Cassandra default data directory, cache directory and commit log directory
    sudo mkdir -p /var/lib/cassandra/data
    sudo mkdir -p /var/lib/cassandra/commitlog
    sudo mkdir -p /var/lib/cassandra/saved_caches
    sudo chown -R ec2-user.ec2-user /var/lib/cassandra
  7. Create Cassandra logging directory
    sudo mkdir -p /var/log/cassandra
    sudo chown -R ec2-user.ec2-user /var/log/cassandra
  8. Start Cassandra
    cd /opt/apache-cassandra-0.7.5
    bin/cassandra -f