Apache Cassandra Interview Questions

Connect with

Apache Cassandra Interview QuestionsApache Cassandra Interview Questions for all levels: for developer, for admin, for beginners of Cassandra, List of FAQ: frequently asked questions in Apache Cassandra.

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)?

Ans:
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>

or

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

cqlsh -help.

Reference

  1. Apache Cassandra
  2. Apache Cassandra Essential

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 🙂


Connect with

Leave a Comment

Your email address will not be published. Required fields are marked *