The Guide Show Step-by-Step How-to Install and Getting-Started with the Latest Apache Cassandra NoSQL Database for Mac OS X Desktop.
Here is Described a Local Installation because for a System-Wide One the User Need to have Root-Privileges... The Default System Installation Instead is Pre-Configured to be in /var/lib/cassandra Directory with Logs in /var/log/cassandra.
The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)
-
Download Latest Apache Cassandra Release:
- Double-Click on Archive and Extract Cassandra Into /tmp
- Open a Terminal Window
- Relocate Cassandra Directory
mv /tmp/apache-cassandra* $HOME/cassandra/
mkdir $HOME/cassandra/{commitlog,log,data,saved_caches} - Edit Configuration File
cd $HOME/cassandra
nano conf/cassandra.yaml
Modify the Following Lines:
data_file_directories: /Users/<userName>/cassandra/data
commitlog_directory: /Users/<userName>/cassandra/commitlog
saved_caches_directory: /Users/<userName>/cassandra/saved_caches
- Set Log Directory
nano conf/log4j-server.properties
Modify:
log4j.appender.R.file=/Users/<userName>/cassandra/log/system.log
- Start Cassandra Instance
./bin/cassandra
- Check Connection to Cassandra Instance with nodetool
./bin/nodetool --host 127.0.0.1 ring
The Output will Confirm that the Cassandra Database is Successfully Installed on Your Mac System :)
-
Getting-Started with Cassandra Database: