I have 3 virtual Cassandra nodes cluster. Node1, Node2 & Node3.
I have written a small python code to bulk load data into it.
1st time only 2 nodes out of three are available online, Node1 & Node2 when I execute the python code with
session.default_consistency_level = 2
I got and error:
cassandra.Unavailable: Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level TWO" info={'consistency': 'TWO', 'required_replicas': 2, 'alive_replicas': 1}
After that I brought my third node (Node3) online and executed the python program, it executed successfully.
As I understand Consistency Level = 2 means at least 2 nodes out of 3 should be available every time.
Thanks!