Reputation: 4864
I was trying to connect to my remote cassandra DB via cqlsh
,
Connection error: ('Unable to connect to any servers', {'XX.XX.XX.XX': ProtocolError("cql_version '3.4.0' is not supported by remote (w/ native protocol). Supported versions: [u'3.2.1']",)})
I installed Planet Cassandra version 3.2.1 from this link .
I run the command : nodetool version
it is showing 3.2.1
version.
I found similar question here , but that didn't help me.
Upvotes: 4
Views: 3971
Reputation: 294
Still if you want to connect over the old version you can :
$ cqlsh --cqlversion=3.2.1 host_ip
ex : $ cqlsh --cqlversion=3.2.1 192.168.0.172
where 192.168.0.172 is the machine where you want to connect.
Upvotes: 5
Reputation: 8812
Humm, it looks like you're using an "old" version of the cqlsh and not the one shipped with Cassandra 3.2.1.
Try
shell> which cqlsh
or
shell> locate cqlsh
to see if it points you the the right version
Upvotes: 1