Thursday, September 8, 2016

Problem with Ubuntu 16.04 and cqlsh in Cassandra 3.7

When I was installing Cassandra 3.7 on Ubuntu 16.04 I faced issue :

Connection error: ('Unable to connect to any servers', {'127.0.0.1': TypeError('ref() does not take keyword arguments',)})

To Solve this I have done the following and it worked :
     sudo apt update
     sudo apt upgrade                  <upgrade the old packages>
     sudo apt install python-pip   <install pip for python if not installed>
     pip install cassandra-driver   <install Cassandra driver>
      pip install --upgrade pip       <upgrade pip. This step is not required>
     export CQLSH_NO_BUNDLED=true 


After above changes cqlsh started working for me.
It might be due to a change in the behavior of the weakref.ref() function in Python 2.7.12.

No comments:

Post a Comment