Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 2.34 KB

step1.md

File metadata and controls

73 lines (60 loc) · 2.34 KB
Nodetool ℹ️ For technical support, please contact us via email.
⬅️ Back Next ➡️ Step 1 of 3
Create a keyspace and table

Cassandra should be installed in /workspace/ds201-lab06/apache-cassandra-4.1.0/.

✅ Change to the ./bin directory:

cd /workspace/ds201-lab06/apache-cassandra-4.1.0/bin

✅ Look for nodetool in the directory:

ls -l

✅ Run nodetool with the help command and take your time to learn about various available commands:

./nodetool help

Some commands display information about the entire cluster and its nodes. Others may be specific to a node you connect to.


Note: The following commands have to connect to a running Cassandra node to get information about the cluster. You may have to run them more than once if your node(s) are not yet up.


✅ Run nodetool with the describecluster command to display high-level information about the cluster:

./nodetool describecluster

✅ Run nodetool with the status command to display information about all nodes in the cluster:

./nodetool status

For each node, you should be able to see its state, IP address, load, and so forth. 

✅ Run nodetool with the info command to display information about this node:

./nodetool info

Take your time to read through all the information pieces.

⬅️ Back Next ➡️