ccm create cassandra_dev_cluster -n 3 -v 2.1.2
ccm create dse_dev_cluster --dse
--dse-username=philip.s.doctor_gmail.com
--dse-password=ffddHgn5rS -v 4.6.5
ccm start
./ccm status
Cluster: 'cassandra_dev_cluster'
--------------------------------
node1: UP
node3: UP
node2: UP
./ccm node2 cqlsh
Connected to cassandra_dev_cluster
at 127.0.0.2:9042.
CREATE KEYSPACE intro
WITH REPLICATION =
{ 'class' : 'SimpleStrategy',
'replication_factor' : 3 };
use intro;
CREATE TABLE test_data (
data_id int PRIMARY KEY,
data_item text
);
insert into test_data (data_id, data_item)
values (1, 'foo');
select * from test_data where data_id = 1;
ccm node1 stop && ccm node2 stop
ccm status
ccm node3 cqlsh
Datastax Academy
https://academy.datastax.com/
Datastax Documentation
http://docs.datastax.com/en/cql/3.1/cql/cql_reference/create_keyspace_r.html
http://docs.datastax.com/en/cql/3.1/cql/cql_reference/create_table_r.html
CCM
https://github.com/pcmanus/ccm