You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# on each cass node... cd~/apache-cassandra-2.1.9
bin/cassandra start
Open EC2 Security Group ports
7000
9160
9042
Test data replication with CQLSH
# Connect to any node - you can run: hostname -i to get the IP
apache-cassandra-2.1.9/bin/cqlsh IP
CREATE KEYSPACE CLUSTER_TEST WITH REPLICATION = { 'class':'SimpleStrategy', 'replication_factor': 3 };
USE CLUSTER_TEST;
CREATE TABLE TEST ( key text PRIMARY KEY, value text);
INSERT INTO TEST (key,value) VALUES ('1', 'works');
SELECT * from TEST;
# Connect to any other node - you can run: hostname -i to get the IP - check for data replication
apache-cassandra-2.1.9/bin/cqlsh IP
USE CLUSTER_TEST;
SELECT * from TEST;