1. Install a Cassandra cluster using DC/OS CLI:

    Note: Your cluster must have at least 3 private nodes.

    $ dcos package install cassandra
    1. Once the cluster is installed, retrieve connection information by running the connection command:

      $ dcos cassandra connection
      “address”: [
      “dns”: [


  2. SSH into a DC/OS node:

    $ dcos node ssh --master-proxy --leader
    core@ip-10-0-6-153 ~ $

    Now that you are inside your DC/OS cluster, you can connect to your Cassandra cluster directly.

  3. Launch a docker container containing cqlsh to connect to your cassandra cluster:

    core@ip-10-0-6-153 ~ $ docker run -ti cassandra:3.0.7 cqlsh --cqlversion="3.4.0" node-0.cassandra.mesos
  4. You are now connected to your Cassandra cluster. Create a sample keyspace called demo:
    cqlsh> CREATE KEYSPACE demo WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
  5. Create a sample table called map in our demo keyspace:
    cqlsh> USE demo;CREATE TABLE map (key varchar, value varchar, PRIMARY KEY(key));
  6. Insert some data in the table:
    cqlsh> INSERT INTO demo.map(key, value) VALUES('Cassandra', 'Rocks!');
    cqlsh> INSERT INTO demo.map(key, value) VALUES('StaticInfrastructure', 'BeGone!');
    cqlsh> INSERT INTO demo.map(key, value) VALUES('Buzz', 'DC/OS is the new black!');
  7. Query the data back to make sure it persisted correctly:
    cqlsh> SELECT * FROM demo.map;