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)"Mac OS X has a copy of Python preinstalled, but this makes sure you get the newest version.
brew install pythonTo use cqlsh, the Cassandra query language shell, you need to install cql:
pip install cqlThis installs Apache Cassandra:
brew install cassandraUse this command to start Cassandra:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plistUse this command to stop Cassandra:
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plistOn Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gives this error message:
launchctl: Couldn't stat("/Users/<user>/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directoryTo fix this just issue the following command. Then, try using the launchctl load command again:
cp /usr/local/Cellar/cassandra/<version number>/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/- Properties:
/usr/local/etc/cassandra - Logs:
/usr/local/var/log/cassandra - Data:
/usr/local/var/lib/cassandra/data
- [Apache Cassandra] (http://cassandra.apache.org/)
- [Datastax Cassandra Documentation] (http://www.datastax.com/documentation/cassandra/2.0/cassandra/gettingStartedCassandraIntro.html)
Have fun with Cassandra!
I got the same issue with java 11. Then changed java version to 1.8 and ran the
cassandra f. then thecqlshword as normal.cqlsh Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.11.4 | CQL spec 3.4.4 | Native protocol v4] Use HELP for help. cqlsh>it seems like again there is an issue with java 11 here.