I'm having trouble setting up a new Cassandra cluster. I've set up a 3 node cluster in EC2 (Zone: eu-west-1b). When I try to insert a record into a new table I receive this error message:
cqlsh:test> insert into mytest (id, value) values(1,100);
Unable to complete request: one or more nodes were unavailable.
I've confirmed that the 3 nodes are up and running:
nodetool status
UN ***.***.***.*** 68.1 KB 256 33.2% bbf1c5e9-ac68-41a1-81a8-00c7877c4eac rack1
UN ***.***.***.*** 81.95 KB 256 34.1% e118e3a7-2486-4c08-8ba1-d337888ff59c rack1
UN ***.***.***.*** 68.12 KB 256 32.7% 041cb88e-df21-4640-b7ac-7a87fd38dae6 rack1
The commands I used to create the keyspace and table are:
create keyspace test with replication ={'class':'NetworkTopologyStrategy', 'eu-west-1b': 2};
use test;
create table mytest (id int primary key, value int);
insert into mytest (id, value) values(1,100);
Each node can see the keyspace - I used CQLSH and ran descibe keyspace and got this output from each node:
CREATE KEYSPACE test WITH replication = {
'class': 'NetworkTopologyStrategy',
'eu-west-1b': '2'
};
USE test;
CREATE TABLE mytest (
id int PRIMARY KEY,
value int
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
read_repair_chance=0.100000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
compaction={'class': 'SizeTieredCompactionStrategy'} AND
compression={'sstable_compression': 'SnappyCompressor'};