Overview of Cassandra Interview Questions?
These question are baic questions which will check your basic knowledge 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 all levels of interview.
Q1. How to stop Cassandra on windows?
Ans: On Windows installations, you can find the JVM process and kill it using the Task Manager.
Q2. 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
Q3. 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 ...
Q4. How to connect from one node to another via cqlsh?
$ bin/cqlsh 10.0.8.10 9042
Q5. How to see complete list of the command-line options supported by cqlsh?
Ans: type the command
I hope you enjoyed this post of Apache Cassandra interview questions. And you can visit Apache Cassandra tutorial for more blog post.
Your comments or suggestions are welcome to improve this post. cheers 🙂