Skip to content

Instantly share code, notes, and snippets.

@gre
Last active June 24, 2016 19:44
Show Gist options
  • Save gre/ed296f23070bd9af627b to your computer and use it in GitHub Desktop.
Save gre/ed296f23070bd9af627b to your computer and use it in GitHub Desktop.
Troubleshooting with cassandra on Mac OSX El Captain
  • Download the tar.gz of Cassandra from http://cassandra.apache.org/download/
  • extract it in your own ~ wherever it makes sense for you (me it's in ~/bin/)
  • Add the cassandra-*/bin/ to your $PATH in your bash profile (me I need to add /Users/gre/bin/apache-cassandra-2.2.3/bin/)
  • Try to run cassandra.
  • If it runs fine you are done.
  • If you get into trouble with an error like Unable to gossip with any seeds or Fatal exception during initialization org.apache.cassandra.exceptions.ConfigurationException: Found system keyspace files, but they couldn't be loaded!
    • edit conf/cassandra.yaml in the extracted cassandra directory
    • comment the line # listen_address: localhost
    • start the cassandra command again.
    • You might also need to rm -rf data/data/system from that directory in case you still have the error.
  • if you still have a problem. try again from a fresh Cassandra..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment