Menu
Installation, Starting and Stopping the Apache Cassandra on Mac
This post will cover the steps of Apache Cassandra Installation on Mac (macOS Sierra). If some issues encountered during the installation process we will cover them as well. The easiest process for Installing the Apache Cassandra on the macOS Sierra is to use the Homebrew utility. If you already have the Homebrew installed then you can skip to the next step.
New Installation of HomeBrew
On the DataStax Download page, click Tools CQLSH. If you agree with the license terms, select the CQLSH Terms checkbox, choose a compatible version, and click Tarball to download the tool. Unpack the distribution. Dismiss Join GitHub today. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
The Installation of this little utility / package Manager for the macOS Sierra is very easy.
Connecting the cqlsh to Cassandra
![Download Download](/uploads/1/2/7/2/127298156/100317222.jpg)
On the shell script we can use the following command to connect the cqlsh.
Download Cqlsh Mac Pro
345msaghir$cqlsh localhostConnected to Test Cluster at127.0.0.1:9042.[cqlsh5.0.1|Cassandra3.11.0|Download Cqlsh Mac Os
CQL spec3.4.4|Native protocol v4]Use HELP forhelp.cqlsh>So as of now we have successfully installed the apache cassandra and brought it up and also have successfully connected the cqlsh with the cassandra where we are all set to use all of the features of the apache cassandra.
Stopping the Apache Cassandra
As we have gone through all of the steps of installing the apache cassandra. Now we can go over the command how we can stop the apache cassandra using the grep and kill command. We will use the grep command to find the cassandra process ID using this command ps-ef|grep cassandra
Some other useful details for the Apache Cassandra Installation (installed using the Homebrew) can be found Below
Cassandra file locations
- Properties Files for Cassandra:
/usr/local/etc/cassandra - Data Files for Cassandra:
/usr/local/var/lib/cassandra/data - Log files for Cassandra:
/usr/local/var/log/cassandra
You can further read about the Apache Cassandra on the Apache website or on the datastax website. We have some other interesting tutorials on the Apache Cassandra that you can find here