Brew install cassandra So now we have the Apache Cassandra installed, now its time to start the Cassandra. The following steps show how we can start and stop the Apache Cassandra. Starting the Apache Cassandra The Apache Cassandra installation location on the macOS Sierra using the homebrew will be /usr/local/Cellar/cassandra. We can use the cassandra shell command that is available in the bin directory at /usr/local/Cellar/cassandra//bin. For me the current version of the apache Cassandra is 3.11.0 (/usr/local/Cellar/cassandra/3.11.0/bin). 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.
![Cqlsh install Cqlsh install](/uploads/1/2/5/4/125499297/938832494.png)
![Cqlsh show keyspaces Cqlsh show keyspaces](/uploads/1/2/5/4/125499297/956463408.png)
Apr 24, 2017 - On my system (Mac OS X installed via homebrew ) this file was in. Or just install the dependencies with pip and run the cqlsh script from the cassandra.
We will use the grep command to find the cassandra process ID using this command ps - ef grep cassandra. Msaghir $ ps -ef grep cassandra 501 34598 1 0 12:32PM?? 501 34598 1 0 12:32PM?? 1:17.59 / usr / bin / java -Xloggc: / usr / local / Cellar / cassandra /3.11.0 / libexec / logs / gc. Log -ea -XX: + UseThreadPriorities -XX: ThreadPriorityPolicy =42 -XX: + HeapDumpOnOutOfMemoryError -Xss256k -XX: StringTableSize =1000003 -XX: + AlwaysPreTouch -XX: -UseBiasedLocking -XX: + UseTLAB -XX: + ResizeTLAB -XX: + UseNUMA -XX: + PerfDisableSharedMem -Djava.