Following are the list of frequently asked questions in Apache Cassandra. You know , Apache Cassandra gaining popularity in fast pace so I tried to list down few basic questions in Apache Cassandra for interview.
Q. How to stop Cassandra on windows?
Ans: On Windows installations, you can find the JVM process and kill it using the Task Manager.
Q. How to stop cassandra on Unix (linux or mac)?
when installed as service:
service cassandra stop
if not installed as services, do following
user=`whoami` pgrep -u $user -f cassandra | xargs kill -9
Q. By default what is name of Cassandra Cluster?
Ans. by default name is “Test Cluster” , preferable to change this in production. You can view this default name, when run
cqlsh on command prompt, something similar as follows:
$ bin/cqlsh Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.0.0 | CQL spec 3.3.1 | Native protocol v4] Use HELP for help. cqlsh>
cqlsh> DESCRIBE CLUSTER; Cluster: Test Cluster Partitioner: Murmur3Partitioner ...
Q. How to connect from one node to another via cqlsh?
$ bin/cqlsh 10.0.8.10 9042
Q. How to see complete list of the command-line options supported by cqlsh?
Ans: type the command