Failed to get values ​​from Cassandra using DataStax C # Driver

I have a Cassandra database, and recently I added a second node with it. I have an old application developed in and backend like , which was developed with only one node, it connects to the database and retrieves the values ​​through , although if there are two nodes. C#.net Cassandra Datastax C# Driver

But when I create a new application in for Cassandra now with two nodes through , it connects, and I get , but when I try to extract values ​​from the database, I get this error C#.net Datastax C# Driver session

Not enough replicas available for query with LocalQuorum consistency (2 only 1 live required)

Do I need to change something in the Cassandra Config file (cassandra.yaml) to connect new applications.

I was struck by the problem for several days. If someone reminds me what to do to solve this problem.

Edit: I only get this problem in the new version when I removed this link and added . I did not receive an error. But this may not be the root cause of this problem. I am still looking for the root cause and solution for it. Datastax Cassandra C# Driver V.3.0.0.1 - Beta - 1 Datastax Cassandra C# Driver V.2.7.1

+4
source share
1 answer

When you added your node, did you also increase the replication coefficient (RF)?

The biggest problem that I see is that you are running two node clusters and the request is in quorum.

Don't do this

node, ( ).

enter image description here

2 == 2. , 2 , , , RF 2. node.

, . LOCAL_ONE.
+1

Source: https://habr.com/ru/post/1621412/


All Articles