Skip to content

Instantly share code, notes, and snippets.

@ssmereka
Last active May 27, 2021 14:47
Show Gist options
  • Save ssmereka/e41d4ad053a547611ba7ef1dac4cc826 to your computer and use it in GitHub Desktop.
Save ssmereka/e41d4ad053a547611ba7ef1dac4cc826 to your computer and use it in GitHub Desktop.
Installing Cassandra on Mac: A Quick Guide

Install Cassandra on Mac

  1. Install most recent version of Java. Install homebrew if you don't already have it.

    brew install java
    
  2. Grab a link to the most recent version of Cassandra from their download page.

    mkdir -p ~/opt/packages && cd $_
    curl -O http://mirrors.koehn.com/apache/cassandra/3.7/apache-cassandra-3.7-bin.tar.gz
    gzip -dc apache-cassandra-3.7-bin.tar.gz | tar xf -
    ln -s ~/opt/packages/apache-cassandra-3.7 ~/opt/cassandra
    mkdir -p ~/opt/cassandra/data/data
    mkdir -p ~/opt/cassandra/data/commitlog
    mkdir -p ~/opt/cassandra/data/saved_caches
    mkdir -p ~/opt/cassandra/logs
    
  3. Add Cassandra to your path by adding the following to ~/.profile.

    # include locally installed Cassandra in PATH
    if [ -d "$HOME/opt" ]; then
        PATH="$PATH:$HOME/opt/cassandra/bin"
    fi
    
  4. Reload ~/.profile.

    source ~/.profile
    
  5. Start Cassandra.

    cassandra -f
    
  6. Connect to Cassandra in another terminal window. You may need to reload your ~/.profile.

    source ~/.profile
    cqlsh
    

Sources

@jonshorter
Copy link

Cannot find column durable_wrıtes

This is your problem - look at the i in writes, it's using the Turkish ı instead of i. Try installing on an English OS.

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