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
Linux Command-Line Call Not Returning What It Should from Os.System
Tkinter: Attributeerror: Nonetype Object Has No Attribute ≪Attribute Name≫
What Do Lambda Function Closures Capture
How to Make a Dictionary from Separate Lists of Keys and Values
Does Python Have a String 'Contains' Substring Method
List Comprehension Without [ ] in Python
Use 'Import Module' or 'From Module Import'
Getting Key With Maximum Value in Dictionary
Unicodedecodeerror: 'Utf8' Codec Can't Decode Byte 0X9C
Tkinter.Photoimage Doesn't Not Support Png Image
Get the Olson Tz Name For the Local Timezone
How to Sort a Dictionary by Value
How to Import a Module Given the Full Path
Difference Between Python'S List Methods Append and Extend
Tkinter Creating Buttons in For Loop Passing Command Arguments