Cqlsh Connection Error: 'Ref() Does Not Take Keyword Arguments'

cqlsh connection error: 'ref() does not take keyword arguments'

You are running into CASSANDRA-11850, where cqlsh breaks with Python 2.7.11+. This ticket has been marked as "Resolved" and a patch has been applied to Cassandra 3.9 which has not been released yet.

I believe I installed all the necessary packages such as java 8 and python 2.7.12.

In the interim (until 3.9 is released) you can roll back to Python 2.7.10, and cqlsh should work (not trivial). Otherwise, DataStax DevCenter should work with Cassandra 3.7.

Edit 20161020

Cassandra 3.9 was released a few weeks ago, and can now be downloaded.

Apache Cassandra 3.7 CQLSH 'Unable to connect to any servers'

As described in the ticket - define environment variable CQLSH_NO_BUNDLED and export it.

export CQLSH_NO_BUNDLED=true

It will tell cqlsh (which is Python program) to use external Cassandra Python driver, not the one bundled with the distribution. The bundled Cassandra driver is located in /opt/datastax-ddc-3.7.0/bin, the file name is cassandra-driver-internal-only-3.0.0-6af642d.zip

Then run cqlsh, which is located in /opt/datastax-ddc-3.7.0/bin.

./cqlsh

It is possible that you will need to install Cassandra Python driver (if it was not installed already) using:

pip install cassandra-driver 

Note - folder names are for Datastax Cassandra build.

cqlsh connection error: 'ref() does not take keyword arguments'

You are running into CASSANDRA-11850, where cqlsh breaks with Python 2.7.11+. This ticket has been marked as "Resolved" and a patch has been applied to Cassandra 3.9 which has not been released yet.

I believe I installed all the necessary packages such as java 8 and python 2.7.12.

In the interim (until 3.9 is released) you can roll back to Python 2.7.10, and cqlsh should work (not trivial). Otherwise, DataStax DevCenter should work with Cassandra 3.7.

Edit 20161020

Cassandra 3.9 was released a few weeks ago, and can now be downloaded.

CQLSH Protocol Error proceeding from apparent version conflicts

It looks like you're running the 3.7 cqlsh against an older server instance. First, be sure you are actually running Cassandra 3.7 (you can probably just check the jar path or look in the logs).

If you want to connect using the advertised cql_version there is a command line option:
https://github.com/apache/cassandra/blob/cassandra-3.7/bin/cqlsh.py#L222

select release_version, cql_version from system.local;

(or just look at the cqlsh welcome header) to see what these parameters are.

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

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.



Related Topics



Leave a reply



Submit