- python
- Homebrew
pip install cql
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install cassandra-driverbrew install cassandraThen, you can add some useful aliases to the ~/.profile to start/stop the cassandra
Add the following to your ~/.profile file
alias start_cassandra='launchctl load /usr/local/Cellar/cassandra/3.9/homebrew.mxcl.cassandra.plist'
alias stop_cassandra='launchctl stop /usr/local/Cellar/cassandra/3.9/homebrew.mxcl.cassandra.plist'
Then, source your .profile file with
source ~/.profile
- Properties: /usr/local/etc/cassandra
- Logs: /usr/local/var/log/cassandra
- Data: /usr/local/var/lib/cassandra/data
In order to run the python-based command line client for executing Cassandra Query Language (CQL) commands do cqlsh
$ cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4]
Use HELP for help.
cqlsh>