In this article, we are going to discuss what is a node in Cassandra, information of node, how we can access the information about the node, and by using Nodetool utility we will also discuss some nodetool commands. let’s discuss one by one.
- A node in Cassandra contains the actual data and it’s information such that location, data center information, etc.
- A node contains the data such that keyspaces, tables, the schema of data, etc.
- you can perform operations such that read, write, delete data, etc. on a node.
- A node plays an important role in Cassandra clusters.
- In Cassandra ring where every node is connected peer to peer and every node is similar to every other node in the cluster.
Let’s consider an example where you have three replicas of data and each replica on different nodes. now, if you want to read data then anyone node can respond that’s why the concept of distributed data across the cluster is so effective and high availability mechanism in Cassandra.
- It is the node management utility tool by which you can get the node health information, node information, cluster information, etc.
- with the help of nodetool commands, you can access all the required information of the nodes.
- Nodetool commands such that help, info, the status will give you the general information about the node.
- It’s by default located in the bin/ folder where Cassandra is installed.
Some basics Nodetool commands :
|help||It will list out all the nodetool commands.|
|status||It will give you the status and a reports about basic health information of the node.|
|info||It will give you the descriptions of the current settings and stats of the node.|
let’s consider an example if a user wants to know the status of the node, then nodetool status commands need to be executed. In given below output is showing node is in the UN (Up and Normal) state and the address of a default node is 127.0.0.1 and also about load and rack information, etc.
C:\Program Files\apache-cassandra-3.11.4\bin>nodetool status Datacenter: datacenter1 ======================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 127.0.0.1 322.11 KiB 256 ? 83ae1bed-37b7-46c0-a166-2a774e147205 rack1
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference Between Apache Kafka and Apache Flume
- Difference between Apache Hive and Apache Spark SQL
- Apache Cassandra tools
- Introduction to Apache Cassandra
- Apache Cassandra (NOSQL database)
- Architecture of Apache Cassandra
- Overview of Data modeling in Apache Cassandra
- Concept of indexing in Apache Cassandra
- Collection Data Type in Apache Cassandra
- Pre-defined data type in Apache Cassandra
- Five main benefits of Apache Cassandra
- SSTable in Apache Cassandra
- Apache Hive
- Apache HBase
- How to make sure that Apache service keeps running in Ubuntu
- Introduction to Apache Pig
- Why Apache Kafka is so Fast?
- Building Apps with Apache Cordova
- How to Install and Run Apache Kafka on Windows?
- Spring Boot | How to publish JSON messages on Apache Kafka
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.