Jump to: navigation, search

Startup and Create the Cassandra Schema

Important
UCS automatically enables UTF-8 at startup if it is connected to Configuration Server UTF-8.

For a Single-Data-Center Configuration

  1. Start all Cassandra nodes at one- or two-minute intervals (Cassandra recommendation). Your Cassandra nodes must be started in a certain order:
    1. Start the seed node. The seed node is one of the nodes specified in the seeds option (defined in the conf/cassandra.yaml file set on all Cassandra nodes).
    2. Start the other non-seed nodes.
  2. Start all UCS nodes.
  3. Wait for the message: UCS schema not found, will check again in 10000ms.
  4. In the [schema] section of a single UCS, update the manage option to have the value true. This action begins the process of schema creation. Other nodes will display the message: Found UCS schema, proceeding with initialization.
  5. When the schema is created, change the manage option value back to false.

For Multiple-Data-Center Configuration

  1. Start all Cassandra nodes at one- or two-minute intervals (Cassandra recommendation). Your Cassandra nodes must be started in a certain order:
    1. Start the seed node. The seed node is one of the nodes specified in the seeds option (defined in the conf/cassandra.yaml file set on all Cassandra nodes).
    2. Start the other non-seed nodes.
  2. Start all UCS nodes.
  3. Wait for the message: UCS schema not found, will check again in 10000ms.
  4. In the [schema] section, update the manage option to have the value true on one node in one Data Center. This action begins the process of schema creation. Other nodes will display the message: Found UCS schema, proceeding with initialization.
  5. Change the manage option value back to false.

Verifying Your Cassandra Cluster

After you have deployed your Cassandra cluster, you may want to verify that all of the nodes can communicate with each other. To do this, execute the following command on any Database VM:

Linux

cd <Cassandra_installation_dir>/bin
./nodetool -h <hostname> ring

Windows

cd <Cassandra_installation_dir >/bin
nodetool.bat status

This command should produce output that is something like this:

Address       Rack        Status State   Load            Owns                Token                                     
                                                                             9214072616377460290                       
10.51.XX.XXX  RAC1        Up     Normal  173.83 KB       ?                   -9216426578912174305                      
10.51.XX.XXX  RAC1        Up     Normal  179.07 KB       ?                   -9207093293907487303                      
10.51.XX.XXX  RAC1        Up     Normal  173.83 KB       ?                   -9200634663654852092                      
10.51.XX.XXX  RAC1        Up     Normal  179.07 KB       ?                   -9195811494000614851

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on May 18, 2018, at 06:55.