Cassandra For Mac
Install Homebrew:
Apache Cassandra is an open-source distributed storage system. The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data. Cassandra's support for replicating across multiple datacenters is best-in-class, providing lower latency for your.
Install Python:
Install cql:
Install Cassandra:
Starting/Stopping Cassandra:Probably it's better NOT to start Cassandra on startup (using plist file from ~/Library/LaunchAgents/). Instead we just start/stop it when it's needed:
Cassandra file locations
Properties: /usr/local/etc/cassandra
Logs: /usr/local/var/log/cassandra
Data: /usr/local/var/lib/cassandra/data
Cassandra itself: /usr/local/Cellar/cassandra/{version}
Versionless alias: /usr/local/opt/cassandra
Connect to cassandra using cqlsh:
About the App
- App name: cassandra
- App description: Eventually consistent distributed key-value store
- App website: https://cassandra.apache.org
Install the App
- Press
Command+Space
and type Terminal and press enter/return key. - Run in Terminal app:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null
and press enter/return key.
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish. - Run:
brew install cassandra
Done! You can now use cassandra
.