Create a Cassandra table

Create a Cassandra table as part of the basic tutorial.

Procedure

  1. Start cqlsh, and create a keyspace. Use the keyspace.
    cqlsh> CREATE KEYSPACE nhanes_ks WITH REPLICATION =
           {'class':'NetworkTopologyStrategy', 'Solr':1};
    
    cqlsh> USE nhanes_ks;
  2. Copy the CQL table definition from the downloaded create_nhanes.cql file, and paste in on the cqlsh command line.
    This action creates the nhanes table in the nhanes_ks keyspace.