Difficulty: Beginner
Estimated Time: 10-20 minutes

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:

  • Clusters
  • Keyspaces
  • Tables
  • Partitions
  • Rows
  • Columns

It's easy! Let's get started!

In this scenario, you learned about:

  • Clusters
  • Keyspaces
  • Tables
  • Partitions
  • Rows
  • Columns

Having successfully completed this scenario, you should have a pretty good understanding how Cassandra organizes data.

For more learning, try the Cassandra Fundamentals learning series on datastax.com/dev.

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: Cassandra Storage Organization

Step 1 of 5

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, cqlsh. In the terminal, we have started an instance of cqlsh so you can try it out!

Try the HELP command: HELP

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: HELP SHOW

In the help explanation, we see the different versions of the SHOW command. Execute the SHOW VERSION command to see the version of Cassandra, etc.: SHOW VERSION


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 SHOW command: SHOW HOST


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

Finally, you can end your cqlsh session: EXIT

To restart your cqlsh session from the terminal command prompt: cqlsh


Great! You now understand what a cluster is and how to access it via cqlsh!