Skip to content

Instantly share code, notes, and snippets.

@klappradla
Last active August 4, 2016 13:10
Show Gist options
  • Save klappradla/a3e9f538b78de23914f93b7e1bb96246 to your computer and use it in GitHub Desktop.
Save klappradla/a3e9f538b78de23914f93b7e1bb96246 to your computer and use it in GitHub Desktop.
Install Cassandra v.1.2 on OSX
# Install Cassandra version 1.2.9
mkdir ~/tmp
cd ~/tmp
curl -O http://archive.apache.org/dist/cassandra/1.2.9/apache-cassandra-1.2.9-bin.tar.gz
tar -xzf apache-cassandra-*
rm -rf *.tar.gz
# Create cassandra lib/log directory and grant access to it?
sudo mkdir /var/lib/cassandra
sudo mkdir /var/log/cassandra
# Move cassandra into own dir
mv apache-cassandra-* ~/cassandra
# Add config to your .zshrc / .bashrc
export CASSANDRA_HOME=~/cassandra # Add Cassandra 1.2 config
export PATH="$PATH:$CASSANDRA_HOME/bin"
@klappradla
Copy link
Author

klappradla commented Aug 4, 2016

To start Cassandra:

# Start Cassandra in foreground
cassandra

# Start Cassandra CLI
cqlsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment