I've recently redone all the exercises 1-13 in DS201, being very careful to follow the instructions exactly.
So I get to exercise 14, where it says to bring down both the nodes responsible for the 'cassandra' partition. So I run this:
/home/ubuntu/node1/resources/cassandra/bin/nodetool getendpoints killrvideo videos_by_tag 'cassandra' 127.0.0.2 127.0.0.3
So I bring them both down using 'stopdaemon'. Immediately, I run 'nodetool status':
ubuntu@ds201-node1:~$ node1/bin/nodetool status Datacenter: east-side ===================== Status=Up/Down|/ State=Normal/Leaving/Joining/Moving-- Address Load Tokens Owns Host ID Rack DN 127.0.0.2 288.53 KiB 128 ? a3555477-06e2-47fa-b209-e19c753d4cf4 hakuna-matata Datacenter: west-side ===================== Status=Up/Down|/ State=Normal/Leaving/Joining/Moving-- Address Load Tokens Owns Host ID Rack UN 127.0.0.1 274.19 KiB 128 ? 8c3a4a55-5b38-42ba-8234-e9d588e56b80 hakuna-matata DN 127.0.0.3 241.59 KiB 128 ? b396b07e-dde0-4f4c-8de7-e79d6d360c79 hakuna-matataNote: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
Both nodes are down.
Then the exercise says to insert a new row after setting 'consistency any':
cqlsh> consistency any; Consistency level set to ANY. cqlsh> use killrvideo; NoHostAvailable: cqlsh> INSERT INTO killrvideo.videos_by_tag(tag, added_date, video_id, title) VALUES ('cassandra', '2016-2-11', uuid(), 'Cassandra, Take Me Home'); NoHostAvailable: cqlsh>
The exercise says 'the write will succeed' - but it clearly doesn't. And there are no hints under any of the nodes.
What have I done wrong?