If you want to harness the power and speed of Apache Cassandra™, then you want to understand how to organize your data in Cassandra.
In this scenario, we'll learn about:
It's easy! Let's get started!
Check out our datastax.com/dev site, where you can find many more resources to help you succeed with Apache Cassandra™.
In this scenario, you learned about:
Having successfully completed this scenario, you should have a pretty good understanding how Cassandra organizes data.
Was this helpful? Please give this scenario a rating (click on the stars above).
Have questions or more feedback? Send us a message.
Want a free 5 GB Cassandra database in the cloud to continue experimenting? Sign up and launch your database with a few clicks at astra.datastax.com!
Try It Out: Storage Organization in Apache Cassandra™
What is an Apache Cassandra™ Cluster?
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: