Apache Cassandra™ 1.2

Creating a keyspace

You can use the CLI to create a keyspace. Use single quotation marks around the string value of placement_strategy:

Procedure

Create a keyspace called demo having a replication factor of 1 and using the SimpleStrategy replica placement strategy.
[default@unknown] CREATE KEYSPACE demo
  with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
  and strategy_options = {replication_factor:1};
You can verify the creation of a keyspace with the SHOW KEYSPACES command. The new keyspace is listed along with the system keyspace and any other existing keyspaces.