Getting Started with Riak TS
In the previous module we learned how Riak TS is optimized for time series data. In this module we will become familiar with some of the key terms related to Riak TS. We will also watch a brief Riak TS installation demo that includes how to create a table.
Common Riak TS Terms
First, lets review four important database terms. Riak TS is a key-value store. A key is simply a unique identifier for a value, which can be any binary value. Together they are a Riak object. When a key has more than one value, the object has siblings.
Next, lets review three operational and infrastructure terms. A Riak TS node is simply a server running Riak TS. Often the server is commodity hardware. When several nodes are connected they form a cluster. Clusters can be connected to set up multi-cluster replication or MCR for short. In the Introduction to Operations we will setup a cluster and MCR. Additionally we will learn more about Riak’s MCR strategy.
Finally, lets review two specific Riak TS database terms. Each node within the cluster is responsible for one or more partitions of data. The mapping of this data is the Riak ring. The ring state and bucket properties are constantly shared across the nodes via the gossip protocol. Ring changes will also initiate the gossip protocol to share the update with the other nodes in the cluster.
Riak TS Installation and Create Table Demo
In the demo Jena completed three easy steps to install Riak TS on her Mac.
- Downloaded the Riak TS 1.4 package using
- Unpacked the download with
- Started the node with
She also created a table in the
riak-shell with the SQL command
CREATE TABLE. The Introduction to Application Integration track provides a complete example of creating a table.
Finally, she recommended the following documentation for additional information.
- For a list of supported operating systems, docs.basho.com.
- The Riak TS documentation, docs.basho.com
- The Github repo for riak-shell.
Now that we have seen how easy it is to install Riak TS on a node we can try installing our own node in the next module!
If you want to continue onto the next track Introduction to Operations, we recommend to install three nodes to create a cluster.
Do you have questions, comments, suggestions, or just want to chat about topics related to Basho Academy? If so, please drop by our community forums and say hello.