-
-
Save hajunho/0de0ae46f49c59d342e94e27022bc1a9 to your computer and use it in GitHub Desktop.
Installing Cassandra on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installing Cassandra on Mac OS X | |
| ================================ | |
| Install Homebrew | |
| ---------------- | |
| Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy: | |
| ``` | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
| ``` | |
| Install Python | |
| -------------- | |
| Mac OS X has a copy of Python preinstalled, but this makes sure you get the newest version. | |
| ``` | |
| brew install python | |
| ``` | |
| Install cql | |
| ----------- | |
| To use cqlsh, the Cassandra query language shell, you need to install cql: | |
| ``` | |
| pip install cql | |
| ``` | |
| Install Cassandra | |
| ----------------- | |
| This installs Apache Cassandra: | |
| ``` | |
| brew install cassandra | |
| ``` | |
| Starting/Stopping Cassandra | |
| --------------------------- | |
| Use this command to start: | |
| ``` | |
| launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist | |
| ``` | |
| user this command to stop: | |
| ``` | |
| launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist | |
| ``` | |
| On Mavericks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message: | |
| ``` | |
| launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory | |
| ``` | |
| To fix this just issue the following command. Then, try using the ```launchctl load``` command again: | |
| ``` | |
| cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/ | |
| ``` | |
| Cassandra file locations | |
| ------------------------ | |
| Properties: /usr/local/etc/cassandra | |
| Logs: /usr/local/var/log/cassandra | |
| Data: /usr/local/var/lib/cassandra/data | |
| Have fun with Cassandra! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment