Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra with c#

Tags:

c#

cassandra

I am getting following error while querying the cassandra column family using asp.net csharp. My cassandra version is 1.2.1

An unhandled exception of type 'Cassandra.ProtocolErrorException' occurred in Cassandra.dll

Additional information: Unknown code 10 for a consistency level

Please suggest the resolution.

like image 899
seou1 Avatar asked Mar 23 '26 04:03

seou1


1 Answers

I think you need to explicitly specify the protocol version to 1 when creating the cluster instance. v3 of C# driver are quite new while v1.2.1 of cassandra server is very old. Please check this official doc for details: http://docs.datastax.com/en/developer/csharp-driver/3.0/common/drivers/introduction/driverDependencies_r.html?scroll=reference_ds_a1z_m5f_5j__build-environment-dependencies-section

like image 132
Teddy Ma Avatar answered Mar 24 '26 19:03

Teddy Ma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!