A Cassandra Cluster is a set of one or more machines that contains and processes your data.
One way to access your cluster is with the CQL command shell,
In the terminal, we have started an instance of
cqlsh so you can try it out!
You see a list of various commands and topics. Let's try some of the commands!
Let's try the
SHOW command. To understand the details of how to use this command, execute:
In the help explanation, we see the different versions of the
SHOW VERSION command to see the version of Cassandra, etc.:
ProTip: You can use the tab key for command completion and to show you command options. Also, you can scroll through the
cqlsh command history using the up/down arrow keys.
Also, we can look at the host information using the
NOTE: You may have noticed we type the commands in uppercase - the commands are not case-sensitive, but we use uppercase by convention just to make the commands easy to recognize.
When your screen is cluttered, you can clear it:
Finally, you can end your
To restart your cqlsh session from the terminal command prompt: