pythondatabasecassandraremote-accesscassandra-cli

Cassandra cqlsh Connection error : 'Unable to connect to any servers',.cql_version '3.4.0' is not supported by remote


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.


Solution

  • 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.