How to install Cassandra in OSX with homebrew


Cassadra is a high-performant distributed database now developed under the wings of the Apache Foundation.

Installing it on OSX with homebrew is pretty straightforward:

  • Download and install java (yes, Cassandra is written in java. Yes, WTF)
  • Install cassandra and its dependencies: brew install cassandra.
  • Homebrew will ask you to install install a .plist file in ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist so the service will start at OSX boot.

    For debugging pourposes (e.g trying phpcassa exception system) you may be interested in stopping and starting the cassandra process manually. You can do that with
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist or launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist